Class: Yelp::V1::Phone::Request::Number
Overview
Describes a request to search for a business review for the business associated with a specific phone number.
Instance Attribute Summary (collapse)
-
- (Object) phone_number
readonly
the phone number of the business to search for, formatted as '1112223333'.
Attributes inherited from Request
#compress_response, #response_format, #yws_id
Instance Method Summary (collapse)
Methods inherited from Request
Methods inherited from Record
Constructor Details
This class inherits a constructor from Yelp::V1::Request
Instance Attribute Details
- (Object) phone_number (readonly)
the phone number of the business to search for, formatted as '1112223333'. Make sure you don't have any hyphens or parentheses.
13 14 15 |
# File 'lib/yelpster/v1/phone/request/number.rb', line 13 def phone_number @phone_number end |
Instance Method Details
- (Object) base_url
15 16 17 |
# File 'lib/yelpster/v1/phone/request/number.rb', line 15 def base_url 'http://api.yelp.com/phone_search' end |
- (Object) to_yelp_params
19 20 21 |
# File 'lib/yelpster/v1/phone/request/number.rb', line 19 def to_yelp_params super.merge(:phone => phone_number) end |