Class: CheapSkate::FacetResponse
- Inherits:
-
Object
- Object
- CheapSkate::FacetResponse
- Defined in:
- lib/cheap_skate/models.rb
Instance Attribute Summary collapse
-
#facets ⇒ Object
Returns the value of attribute facets.
-
#fields ⇒ Object
Returns the value of attribute fields.
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#query ⇒ Object
Returns the value of attribute query.
-
#total ⇒ Object
Returns the value of attribute total.
Instance Method Summary collapse
- #add_facets(r) ⇒ Object
-
#initialize ⇒ FacetResponse
constructor
A new instance of FacetResponse.
Constructor Details
#initialize ⇒ FacetResponse
Returns a new instance of FacetResponse.
178 179 180 181 |
# File 'lib/cheap_skate/models.rb', line 178 def initialize @fields = [] @facets = {} end |
Instance Attribute Details
#facets ⇒ Object
Returns the value of attribute facets.
177 178 179 |
# File 'lib/cheap_skate/models.rb', line 177 def facets @facets end |
#fields ⇒ Object
Returns the value of attribute fields.
177 178 179 |
# File 'lib/cheap_skate/models.rb', line 177 def fields @fields end |
#limit ⇒ Object
Returns the value of attribute limit.
177 178 179 |
# File 'lib/cheap_skate/models.rb', line 177 def limit @limit end |
#offset ⇒ Object
Returns the value of attribute offset.
177 178 179 |
# File 'lib/cheap_skate/models.rb', line 177 def offset @offset end |
#query ⇒ Object
Returns the value of attribute query.
177 178 179 |
# File 'lib/cheap_skate/models.rb', line 177 def query @query end |
#total ⇒ Object
Returns the value of attribute total.
177 178 179 |
# File 'lib/cheap_skate/models.rb', line 177 def total @total end |
Instance Method Details
#add_facets(r) ⇒ Object
183 184 185 |
# File 'lib/cheap_skate/models.rb', line 183 def add_facets(r) end |