Class: Yelp::V1::Phone::Request::Number

Inherits:
Request show all
Defined in:
lib/yelpster/v1/phone/request/number.rb

Overview

Describes a request to search for a business review for the business associated with a specific phone number.

Instance Attribute Summary collapse

Attributes inherited from Request

#compress_response, #response_format, #yws_id

Instance Method Summary collapse

Methods inherited from Request

#initialize, #pull_results

Methods inherited from Record

#initialize

Constructor Details

This class inherits a constructor from Yelp::V1::Request

Instance Attribute Details

#phone_numberObject (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

#base_urlObject



15
16
17
# File 'lib/yelpster/v1/phone/request/number.rb', line 15

def base_url
  'http://api.yelp.com/phone_search'
end

#to_yelp_paramsObject



19
20
21
# File 'lib/yelpster/v1/phone/request/number.rb', line 19

def to_yelp_params
  super.merge(:phone => phone_number)
end