Class: Yelp::Response::PhoneSearch
- Defined in:
- lib/yelp/responses/phone_search.rb
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) ⇒ PhoneSearch
constructor
A new instance of PhoneSearch.
Constructor Details
#initialize(json) ⇒ PhoneSearch
Returns a new instance of PhoneSearch.
10 11 12 13 14 15 |
# File 'lib/yelp/responses/phone_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/phone_search.rb', line 8 def businesses @businesses end |
#region ⇒ Object (readonly)
Returns the value of attribute region.
8 9 10 |
# File 'lib/yelp/responses/phone_search.rb', line 8 def region @region end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
8 9 10 |
# File 'lib/yelp/responses/phone_search.rb', line 8 def total @total end |