Class: ShopifyURL::Admin::Product
- Inherits:
-
Store::Product
- Object
- String
- Store::Product
- ShopifyURL::Admin::Product
- Defined in:
- lib/shopify_url.rb
Instance Method Summary collapse
Methods inherited from Store::Product
Constructor Details
This class inherits a constructor from ShopifyURL::Store::Product
Instance Method Details
#variants(id, params = nil) ⇒ Object
132 133 134 135 136 |
# File 'lib/shopify_url.rb', line 132 def variants(id, params = nil) url = self + "/variants/" << id.to_s url << "?" << URI.encode_www_form(params.to_a) if params && params.any? url end |