Class: Yelp::Response::Search
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
#initialize(json) ⇒ Search
Returns a new instance of Search.
10 11 12 13 14 15 |
# File 'lib/yelp/responses/search.rb', line 10 def initialize(json) super(json) @businesses = parse(@businesses, Model::Business) @region = parse(@region, Model::Region) end |
Instance Attribute Details
#businesses ⇒ Object (readonly)
Returns the value of attribute businesses.
8 9 10 |
# File 'lib/yelp/responses/search.rb', line 8 def businesses @businesses end |
#region ⇒ Object (readonly)
Returns the value of attribute region.
8 9 10 |
# File 'lib/yelp/responses/search.rb', line 8 def region @region end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
8 9 10 |
# File 'lib/yelp/responses/search.rb', line 8 def total @total end |