lib/agrid_client/models/company.rb in agrid-client-0.0.1 vs lib/agrid_client/models/company.rb in agrid-client-0.0.2
- old
+ new
@@ -1,27 +1,15 @@
-=begin
-Agrid Quotes API
-
-
-
-OpenAPI spec version: 1.0
-
-Generated by: https://github.com/swagger-api/swagger-codegen.git
-
-
-=end
-
require 'date'
require_relative 'concerns/swagger_model'
module AgridClient
class Company
include SwaggerModel
# Unique id
attr_accessor :id, :email, :name, :person_in_charge, :website, :location,
- :addresses, :phones, :logo, :cover, :data_checks, :rankings
+ :addresses, :phones, :logo, :cover, :data_checks, :rankings, :rating
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'id' => :'id',
@@ -33,11 +21,12 @@
:'addresses' => :'addresses',
:'phones' => :'phones',
:'logo' => :'logo',
:'cover' => :'cover',
:'data_checks' => :'data_checks',
- :'rankings' => :'company_rankings'
+ :'rankings' => :'company_rankings',
+ :'rating' => :'rating'
}
end
# Attribute type mapping.
def self.swagger_types
@@ -51,10 +40,11 @@
:'addresses' => :'Array<Address>',
:'phones' => :'Array<Phone>',
:'logo_image' => :'String',
:'cover_image' => :'String',
:'data_checks' => :'Array<DataCheck>',
- :'rankings' => :'Array<CompanyRanking>'
+ :'rankings' => :'Array<CompanyRanking>',
+ :'rating' => 'Float'
}
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash