Class: AgridClient::Company
- Inherits:
-
Object
- Object
- AgridClient::Company
- Includes:
- SwaggerModel
- Defined in:
- lib/agrid_client/models/company.rb
Instance Attribute Summary collapse
-
#addresses ⇒ Object
Unique id.
-
#comission_rate ⇒ Object
Unique id.
-
#cover ⇒ Object
Unique id.
-
#data_checks ⇒ Object
Unique id.
-
#description ⇒ Object
Unique id.
-
#email ⇒ Object
Unique id.
-
#id ⇒ Object
Unique id.
-
#location ⇒ Object
Unique id.
-
#logo ⇒ Object
Unique id.
-
#name ⇒ Object
Unique id.
-
#person_in_charge ⇒ Object
Unique id.
-
#phones ⇒ Object
Unique id.
-
#rankings ⇒ Object
Unique id.
-
#rating ⇒ Object
Unique id.
-
#website ⇒ Object
Unique id.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#initialize(attributes = {}) ⇒ Company
constructor
Initializes the object.
Methods included from SwaggerModel
#_deserialize, #_to_hash, #build_from_hash, #eql?, #to_body, #to_hash
Constructor Details
#initialize(attributes = {}) ⇒ Company
Initializes the object
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'lib/agrid_client/models/company.rb', line 57 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes[:'id'] self.id = attributes[:'id'] end if attributes[:'email'] self.email = attributes[:'email'] end if attributes[:'name'] self.name = attributes[:'name'] end if attributes[:'person_in_charge'] self.person_in_charge = attributes[:'person_in_charge'] end if attributes[:'website'] self.website = attributes[:'website'] end if attributes[:'location'] self.location = attributes[:'location'] end if attributes[:'addresses'] self.addresses = attributes[:'addresses'] end if attributes[:'phones'] self.phones = attributes[:'phones'] end 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 if attributes[:'comission_rate'] self.comission_rate = attributes[:'comission_rate'] end end |
Instance Attribute Details
#addresses ⇒ Object
Unique id
9 10 11 |
# File 'lib/agrid_client/models/company.rb', line 9 def addresses @addresses end |
#comission_rate ⇒ Object
Unique id
9 10 11 |
# File 'lib/agrid_client/models/company.rb', line 9 def comission_rate @comission_rate end |
#cover ⇒ Object
Unique id
9 10 11 |
# File 'lib/agrid_client/models/company.rb', line 9 def cover @cover end |
#data_checks ⇒ Object
Unique id
9 10 11 |
# File 'lib/agrid_client/models/company.rb', line 9 def data_checks @data_checks end |
#description ⇒ Object
Unique id
9 10 11 |
# File 'lib/agrid_client/models/company.rb', line 9 def description @description end |
#email ⇒ Object
Unique id
9 10 11 |
# File 'lib/agrid_client/models/company.rb', line 9 def email @email end |
#id ⇒ Object
Unique id
9 10 11 |
# File 'lib/agrid_client/models/company.rb', line 9 def id @id end |
#location ⇒ Object
Unique id
9 10 11 |
# File 'lib/agrid_client/models/company.rb', line 9 def location @location end |
#logo ⇒ Object
Unique id
9 10 11 |
# File 'lib/agrid_client/models/company.rb', line 9 def logo @logo end |
#name ⇒ Object
Unique id
9 10 11 |
# File 'lib/agrid_client/models/company.rb', line 9 def name @name end |
#person_in_charge ⇒ Object
Unique id
9 10 11 |
# File 'lib/agrid_client/models/company.rb', line 9 def person_in_charge @person_in_charge end |
#phones ⇒ Object
Unique id
9 10 11 |
# File 'lib/agrid_client/models/company.rb', line 9 def phones @phones end |
#rankings ⇒ Object
Unique id
9 10 11 |
# File 'lib/agrid_client/models/company.rb', line 9 def rankings @rankings end |
#rating ⇒ Object
Unique id
9 10 11 |
# File 'lib/agrid_client/models/company.rb', line 9 def @rating end |
#website ⇒ Object
Unique id
9 10 11 |
# File 'lib/agrid_client/models/company.rb', line 9 def website @website end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/agrid_client/models/company.rb', line 14 def self.attribute_map { :'id' => :'id', :'email' => :'email', :'name' => :'name', :'person_in_charge' => :'person_in_charge', :'website' => :'website', :'location' => :'location', :'addresses' => :'addresses', :'phones' => :'phones', :'logo' => :'logo', :'cover' => :'cover', :'data_checks' => :'data_checks', :'rankings' => :'company_rankings', :'rating' => :'rating', :'description' => :'description', :'comission_rate' => :'comission_rate' } end |
.swagger_types ⇒ Object
Attribute type mapping.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/agrid_client/models/company.rb', line 35 def self.swagger_types { :'id' => :'String', :'email' => :'String', :'name' => :'String', :'person_in_charge' => :'String', :'website' => :'String', :'location' => :'Location', :'addresses' => :'Array<Address>', :'phones' => :'Array<Phone>', :'logo' => :'String', :'cover' => :'String', :'data_checks' => :'Array<DataCheck>', :'rankings' => :'Array<CompanyRanking>', :'rating' => 'Float', :'description' => :'String', :'comission_rate' => :'Float' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
103 104 105 106 107 |
# File 'lib/agrid_client/models/company.rb', line 103 def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id end |