class AgridClient::PaginatedQuotes
Attributes
count[RW]
Number of quotes that match with parameters
price_ranges[RW]
PriceRanges are the three points that divide the data set into four equal groups, each group comprising a quarter of the data
quotes[RW]
Quotes filtered using parameters
Public Class Methods
attribute_map()
click to toggle source
Attribute mapping from ruby-style variable name to JSON key.
# File lib/agrid_client/models/paginated_quotes.rb, line 30 def self.attribute_map { :'quotes' => :'quotes', :'count' => :'count', :'price_ranges' => :'price_ranges' } end
new(attributes = {})
click to toggle source
Initializes the object @param [Hash] attributes Model attributes in the form of hash
# File lib/agrid_client/models/paginated_quotes.rb, line 49 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[:'quotes'] self.quotes = attributes[:'quotes'] end if attributes[:'count'] self.count = attributes[:'count'] end if attributes[:'price_ranges'] if (value = attributes[:'price_ranges']).is_a?(Array) self.price_ranges = value end end end
swagger_types()
click to toggle source
Attribute type mapping.
# File lib/agrid_client/models/paginated_quotes.rb, line 39 def self.swagger_types { :'quotes' => :'Array<Quote>', :'count' => :'Integer', :'price_ranges' => :'Array<PriceRange>' } end
Public Instance Methods
==(o)
click to toggle source
Checks equality by comparing each attribute. @param [Object] Object to be compared
# File lib/agrid_client/models/paginated_quotes.rb, line 70 def ==(o) return true if self.equal?(o) self.class == o.class && quotes == o.quotes && count == o.count && price_ranges == o.price_ranges end