Class: Yelp::Fusion::Responses::Search
- Defined in:
- lib/yelp/fusion/responses/search.rb
Overview
Class to parse the Search response JSON
Instance Attribute Summary collapse
-
#businesses ⇒ Object
readonly
Returns the value of attribute businesses.
-
#region ⇒ Object
readonly
Returns the value of attribute region.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Instance Method Summary collapse
-
#initialize(json) ⇒ Search
constructor
A new instance of Search.
Constructor Details
Instance Attribute Details
#businesses ⇒ Object (readonly)
Returns the value of attribute businesses.
32 33 34 |
# File 'lib/yelp/fusion/responses/search.rb', line 32 def businesses @businesses end |
#region ⇒ Object (readonly)
Returns the value of attribute region.
32 33 34 |
# File 'lib/yelp/fusion/responses/search.rb', line 32 def region @region end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
32 33 34 |
# File 'lib/yelp/fusion/responses/search.rb', line 32 def total @total end |