Class: AgridClient::PaginatedCompanies
- Inherits:
-
Object
- Object
- AgridClient::PaginatedCompanies
- Includes:
- SwaggerModel
- Defined in:
- lib/agrid_client/models/paginated_companies.rb
Instance Attribute Summary collapse
-
#companies ⇒ Object
Total of companies that attend the request.
-
#count ⇒ Object
Total of companies that attend the request.
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 = {}) ⇒ PaginatedCompanies
constructor
Initializes the object.
Methods included from SwaggerModel
#_deserialize, #_to_hash, #build_from_hash, #eql?, #to_body, #to_hash
Constructor Details
#initialize(attributes = {}) ⇒ PaginatedCompanies
Initializes the object
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/agrid_client/models/paginated_companies.rb', line 41 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[:'count'] self.count = attributes[:'count'] end if attributes[:'companies'] if (value = attributes[:'companies']).is_a?(Array) self.companies = value end end end |
Instance Attribute Details
#companies ⇒ Object
Total of companies that attend the request
21 22 23 |
# File 'lib/agrid_client/models/paginated_companies.rb', line 21 def companies @companies end |
#count ⇒ Object
Total of companies that attend the request
21 22 23 |
# File 'lib/agrid_client/models/paginated_companies.rb', line 21 def count @count end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
24 25 26 27 28 29 |
# File 'lib/agrid_client/models/paginated_companies.rb', line 24 def self.attribute_map { :'count' => :'count', :'companies' => :'companies' } end |
.swagger_types ⇒ Object
Attribute type mapping.
32 33 34 35 36 37 |
# File 'lib/agrid_client/models/paginated_companies.rb', line 32 def self.swagger_types { :'count' => :'Integer', :'companies' => :'Array<Company>' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
60 61 62 63 64 65 |
# File 'lib/agrid_client/models/paginated_companies.rb', line 60 def ==(o) return true if self.equal?(o) self.class == o.class && count == o.count companies == o.companies end |