Class: Yelp4r::PhoneSearch
- Inherits:
-
Object
- Object
- Yelp4r::PhoneSearch
- Defined in:
- lib/yelp4r/phone_search.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(client) ⇒ PhoneSearch
constructor
A new instance of PhoneSearch.
- #search_by_phone_number(phone) ⇒ Object
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
#client ⇒ Object
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 |