lib/patch_ruby/models/project.rb in patch_ruby-1.15.0 vs lib/patch_ruby/models/project.rb in patch_ruby-1.15.1
- old
+ new
@@ -55,11 +55,14 @@
attr_accessor :average_price_per_tonne_cents_usd
# The remaining mass in grams available for purchase for this project.
attr_accessor :remaining_mass_g
- # An object returning the Standard associated with this project.
+ # The name of the project verifier. A verifier is the organization that verifies the calculations of the actual amount of greenhouse gas emissions that have been avoided or sequestered through implementation of the project.
+ attr_accessor :verifier
+
+ # An object returning the Standard associated with this project. Standards provide guidance on GHG quantification, monitoring, and reporting. Standards can include protocols/methodologies and guidance documents.
attr_accessor :standard
# An array returning the UN Sustainable Development Goals associated with this project.
attr_accessor :sdgs
@@ -105,10 +108,11 @@
:'longitude' => :'longitude',
:'developer' => :'developer',
:'photos' => :'photos',
:'average_price_per_tonne_cents_usd' => :'average_price_per_tonne_cents_usd',
:'remaining_mass_g' => :'remaining_mass_g',
+ :'verifier' => :'verifier',
:'standard' => :'standard',
:'sdgs' => :'sdgs',
:'tagline' => :'tagline',
:'technology_type' => :'technology_type'
}
@@ -134,10 +138,11 @@
:'longitude' => :'Float',
:'developer' => :'String',
:'photos' => :'Array<Photo>',
:'average_price_per_tonne_cents_usd' => :'Integer',
:'remaining_mass_g' => :'Integer',
+ :'verifier' => :'String',
:'standard' => :'Standard',
:'sdgs' => :'Array<Sdg>',
:'tagline' => :'String',
:'technology_type' => :'TechnologyType'
}
@@ -238,10 +243,14 @@
if attributes.key?(:'remaining_mass_g')
self.remaining_mass_g = attributes[:'remaining_mass_g']
end
+ if attributes.key?(:'verifier')
+ self.verifier = attributes[:'verifier']
+ end
+
if attributes.key?(:'standard')
self.standard = attributes[:'standard']
end
if attributes.key?(:'sdgs')
@@ -346,10 +355,11 @@
longitude == o.longitude &&
developer == o.developer &&
photos == o.photos &&
average_price_per_tonne_cents_usd == o.average_price_per_tonne_cents_usd &&
remaining_mass_g == o.remaining_mass_g &&
+ verifier == o.verifier &&
standard == o.standard &&
sdgs == o.sdgs &&
tagline == o.tagline &&
technology_type == o.technology_type
end
@@ -361,10 +371,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [id, production, name, description, type, mechanism, country, state, latitude, longitude, developer, photos, average_price_per_tonne_cents_usd, remaining_mass_g, standard, sdgs, tagline, technology_type].hash
+ [id, production, name, description, type, mechanism, country, state, latitude, longitude, developer, photos, average_price_per_tonne_cents_usd, remaining_mass_g, verifier, standard, sdgs, tagline, technology_type].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself