lib/agrid_client/models/company.rb in agrid-client-0.0.4 vs lib/agrid_client/models/company.rb in agrid-client-0.0.5

- old
+ new

@@ -5,11 +5,12 @@ class Company include SwaggerModel # Unique id attr_accessor :id, :email, :name, :person_in_charge, :website, :location, - :addresses, :phones, :logo, :cover, :data_checks, :rankings, :rating + :addresses, :phones, :logo, :cover, :data_checks, :rankings, :rating, + :description # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'id' => :'id', @@ -22,11 +23,12 @@ :'phones' => :'phones', :'logo' => :'logo', :'cover' => :'cover', :'data_checks' => :'data_checks', :'rankings' => :'company_rankings', - :'rating' => :'rating' + :'rating' => :'rating', + :'description' => :'description' } end # Attribute type mapping. def self.swagger_types @@ -41,11 +43,12 @@ :'phones' => :'Array<Phone>', :'logo' => :'String', :'cover' => :'String', :'data_checks' => :'Array<DataCheck>', :'rankings' => :'Array<CompanyRanking>', - :'rating' => 'Float' + :'rating' => 'Float', + :'description' => :'String' } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -82,9 +85,12 @@ if attributes[:'data_checks'] self.data_checks = attributes[:'data_checks'] end if attributes[:'rankings'] self.rankings = attributes[:'rankings'] + end + if attributes[:'description'] + self.description = attributes[:'description'] end end # Checks equality by comparing each attribute. # @param [Object] Object to be compared