lib/agrid_client/models/company.rb in agrid-client-0.0.6 vs lib/agrid_client/models/company.rb in agrid-client-0.0.7
- old
+ new
@@ -6,11 +6,11 @@
include SwaggerModel
# Unique id
attr_accessor :id, :email, :name, :person_in_charge, :website, :location,
:addresses, :phones, :logo, :cover, :data_checks, :rankings, :rating,
- :description
+ :description, :comission_rate
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'id' => :'id',
@@ -24,11 +24,12 @@
:'logo' => :'logo',
:'cover' => :'cover',
:'data_checks' => :'data_checks',
:'rankings' => :'company_rankings',
:'rating' => :'rating',
- :'description' => :'description'
+ :'description' => :'description',
+ :'comission_rate' => :'comission_rate'
}
end
# Attribute type mapping.
def self.swagger_types
@@ -44,11 +45,12 @@
:'logo' => :'String',
:'cover' => :'String',
:'data_checks' => :'Array<DataCheck>',
:'rankings' => :'Array<CompanyRanking>',
:'rating' => 'Float',
- :'description' => :'String'
+ :'description' => :'String',
+ :'comission_rate' => :'Float'
}
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -88,9 +90,12 @@
if attributes[:'rankings']
self.rankings = attributes[:'rankings']
end
if attributes[:'description']
self.description = attributes[:'description']
+ end
+ if attributes[:'comission_rate']
+ self.comission_rate = attributes[:'comission_rate']
end
end
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared