Class: ShopifyAPI::CustomCollection
- Inherits:
-
Base
- Object
- ActiveResource::Base
- Base
- ShopifyAPI::CustomCollection
- Includes:
- Events, Metafields
- Defined in:
- lib/shopify_api/resources/custom_collection.rb
Instance Method Summary collapse
Methods included from Metafields
Methods included from Events
Methods inherited from Base
activate_session, #as_json, clear_session, #encode, #headers, init_prefix, init_prefix_explicit, #persisted?
Methods included from Countable
Methods inherited from ActiveResource::Base
Instance Method Details
#add_product(product) ⇒ Object
10 11 12 |
# File 'lib/shopify_api/resources/custom_collection.rb', line 10 def add_product(product) Collect.create(:collection_id => self.id, :product_id => product.id) end |