Class: ShopifyURL::Admin::Product

Inherits:
Store::Product show all
Defined in:
lib/shopify_url.rb

Instance Method Summary collapse

Methods inherited from Store::Product

#initialize

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