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

#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

#ccObject (readonly)

Returns the value of attribute cc



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

def cc
  @cc
end

#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



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

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

#to_yelp_paramsObject



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

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