Skip to content

Commit 5a7920d

Browse files
committed
fix merge conflicts
2 parents 62c7102 + f52104d commit 5a7920d

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Adds Sustainable Development Goals (SDGs) field to projects
1313
- Adds filtering to Projects by country, type, remaining inventory
14-
,
14+
1515
### Changed
1616

1717
- vehicle estimates now support optional `make`, `model` and `year` fields.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ type = 'biomass' # Pass in the type of Projects you'd like to get
171171
Patch::Project.retrieve_projects(type: type)
172172

173173
# Retrieve a list of projects with at least 100 grams of available offsets
174-
type = 'biomass' # Pass in the type of Projects you'd like to get
175-
Patch::Project.retrieve_projects(type: type)
174+
remaining_mass_g = 100 # Pass in the type of Projects you'd like to get
175+
Patch::Project.retrieve_projects(remaining_mass_g: remaining_mass_g)
176176
```
177177

178178
### Preferences

lib/patch_ruby/api/projects_api.rb

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ def initialize(api_client = ApiClient.default)
2525
@api_client = api_client
2626
end
2727
# Retrieves a project
28-
# Retrieves a project available on Patch's platform.
29-
# @param id [String]
28+
# Retrieves a project available on Patch's platform.
29+
# @param id [String]
3030
# @param [Hash] opts the optional parameters
3131
# @return [ProjectResponse]
3232
def retrieve_project(id, opts = {})
@@ -35,8 +35,8 @@ def retrieve_project(id, opts = {})
3535
end
3636

3737
# Retrieves a project
38-
# Retrieves a project available on Patch's platform.
39-
# @param id [String]
38+
# Retrieves a project available on Patch's platform.
39+
# @param id [String]
4040
# @param [Hash] opts the optional parameters
4141
# @return [Array<(ProjectResponse, Integer, Hash)>] ProjectResponse data, response status code and response headers
4242
def retrieve_project_with_http_info(id, opts = {})
@@ -62,10 +62,10 @@ def retrieve_project_with_http_info(id, opts = {})
6262
form_params = opts[:form_params] || {}
6363

6464
# http body (model)
65-
post_body = opts[:body]
65+
post_body = opts[:body]
6666

6767
# return_type
68-
return_type = opts[:return_type] || 'ProjectResponse'
68+
return_type = opts[:return_type] || 'ProjectResponse'
6969

7070
# auth_names
7171
auth_names = opts[:auth_names] || ['bearer_auth']
@@ -87,25 +87,25 @@ def retrieve_project_with_http_info(id, opts = {})
8787
end
8888

8989
# Retrieves a list of projects
90-
# Retrieves a list of projects available for purchase on Patch's platform.
90+
# Retrieves a list of projects available for purchase on Patch's platform.
9191
# @param [Hash] opts the optional parameters
92-
# @option opts [Integer] :page
93-
# @option opts [String] :country
94-
# @option opts [String] :type
95-
# @option opts [Integer] :remainaing_mass_g
92+
# @option opts [Integer] :page
93+
# @option opts [String] :country
94+
# @option opts [String] :type
95+
# @option opts [Integer] :remainaing_mass_g
9696
# @return [ProjectListResponse]
9797
def retrieve_projects(opts = {})
9898
data, _status_code, _headers = retrieve_projects_with_http_info(opts)
9999
data
100100
end
101101

102102
# Retrieves a list of projects
103-
# Retrieves a list of projects available for purchase on Patch&#39;s platform.
103+
# Retrieves a list of projects available for purchase on Patch&#39;s platform.
104104
# @param [Hash] opts the optional parameters
105-
# @option opts [Integer] :page
106-
# @option opts [String] :country
107-
# @option opts [String] :type
108-
# @option opts [Integer] :remainaing_mass_g
105+
# @option opts [Integer] :page
106+
# @option opts [String] :country
107+
# @option opts [String] :type
108+
# @option opts [Integer] :remainaing_mass_g
109109
# @return [Array<(ProjectListResponse, Integer, Hash)>] ProjectListResponse data, response status code and response headers
110110
def retrieve_projects_with_http_info(opts = {})
111111
if @api_client.config.debugging
@@ -130,10 +130,10 @@ def retrieve_projects_with_http_info(opts = {})
130130
form_params = opts[:form_params] || {}
131131

132132
# http body (model)
133-
post_body = opts[:body]
133+
post_body = opts[:body]
134134

135135
# return_type
136-
return_type = opts[:return_type] || 'ProjectListResponse'
136+
return_type = opts[:return_type] || 'ProjectListResponse'
137137

138138
# auth_names
139139
auth_names = opts[:auth_names] || ['bearer_auth']

0 commit comments

Comments
 (0)