Class: Hyperpublic::All
- Extended by:
- Forwardable
- Defined in:
- lib/hyperpublic/all.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #find(params) ⇒ Object
-
#initialize(client) ⇒ All
constructor
A new instance of All.
Methods inherited from Base
#photos, #search_neighborhoods, #search_tags
Constructor Details
#initialize(client) ⇒ All
Returns a new instance of All.
8 9 10 |
# File 'lib/hyperpublic/all.rb', line 8 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
6 7 8 |
# File 'lib/hyperpublic/all.rb', line 6 def client @client end |
Instance Method Details
#find(params) ⇒ Object
12 13 14 15 16 |
# File 'lib/hyperpublic/all.rb', line 12 def find(params) q = Addressable::URI.new q.query_values = stringify(params) perform_get("/all?#{q.query}") end |