Class: RangeResponse::Range
- Defined in:
- lib/dto/search/range_response.rb
Overview
Class Range represents elements of server response on range
Search API request. Server response is sent to initializer which creates object with attributes field
, min
, max
accessible via getters:
range = Range.new(...)
range.field # => Array
range.min # => 10
range.max # => 20
Instance Attribute Summary collapse
-
#field ⇒ Object
Returns the value of attribute field.
-
#max ⇒ Object
Returns the value of attribute max.
-
#min ⇒ Object
Returns the value of attribute min.
Method Summary
Methods inherited from Struct
Instance Attribute Details
#field ⇒ Object
Returns the value of attribute field
19 20 21 |
# File 'lib/dto/search/range_response.rb', line 19 def field @field end |
#max ⇒ Object
Returns the value of attribute max
19 20 21 |
# File 'lib/dto/search/range_response.rb', line 19 def max @max end |
#min ⇒ Object
Returns the value of attribute min
19 20 21 |
# File 'lib/dto/search/range_response.rb', line 19 def min @min end |