Class: Yelp4r::PhoneSearch

Inherits:
Object
  • Object
show all
Defined in:
lib/yelp4r/phone_search.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ PhoneSearch

Returns a new instance of PhoneSearch.



6
7
8
# File 'lib/yelp4r/phone_search.rb', line 6

def initialize(client)
  @client = client
end

Instance Attribute Details

#clientObject

Returns the value of attribute client.



4
5
6
# File 'lib/yelp4r/phone_search.rb', line 4

def client
  @client
end

Instance Method Details

#search_by_phone_number(phone) ⇒ Object



10
11
12
# File 'lib/yelp4r/phone_search.rb', line 10

def search_by_phone_number(phone)
  process({:phone => phone})
end