Class: Factual::Resolve

Inherits:
Object
  • Object
show all
Defined in:
lib/factual/resolve.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clientObject

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