Class: Factual::Resolve
- Inherits:
-
Object
- Object
- Factual::Resolve
- Defined in:
- lib/factual/resolve.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(client) ⇒ Resolve
constructor
A new instance of Resolve.
- #search_by_values(params) ⇒ Object
Constructor Details
#initialize(client) ⇒ Resolve
Returns a new instance of Resolve.
6 7 8 |
# File 'lib/factual/resolve.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/factual/resolve.rb', line 4 def client @client end |
Instance Method Details
#search_by_values(params) ⇒ Object
10 11 12 13 |
# File 'lib/factual/resolve.rb', line 10 def search_by_values(params) values = params.to_json PlacesResponse.new(@client.class.get('/places/resolve', :query => {:values => values})) end |