Class: Skroutz::ProductsCollection
- Inherits:
-
CollectionProxy
- Object
- CollectionProxy
- Skroutz::ProductsCollection
- Defined in:
- lib/skroutz/products_collection.rb
Instance Attribute Summary
Attributes inherited from CollectionProxy
Instance Method Summary collapse
Methods inherited from CollectionProxy
#all, #find, #initialize, #model_name, #page, #resource, #resource_prefix
Methods included from UrlHelpers
Methods included from Parsing
#collection?, #collection_resource_key, #infer_collection, #infer_model, #link_header, #parse, #parse_collection, #parse_meta, #parse_resource, #resource_key
Constructor Details
This class inherits a constructor from Skroutz::CollectionProxy
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Skroutz::CollectionProxy
Instance Method Details
#search_by_shop_uid(shop_uid) {|response| ... } ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/skroutz/products_collection.rb', line 2 def search_by_shop_uid(shop_uid) response = client.get("#{base_path}/search", shop_uid: shop_uid) return parse(response) unless block_given? yield response end |