Class: ShopifyURL::Store::Collections

Inherits:
String
  • Object
show all
Defined in:
lib/shopify_url.rb

Instance Method Summary collapse

Constructor Details

#initialize(host, id = nil, qs = nil) ⇒ Collections

Returns a new instance of Collections.



44
45
46
47
48
# File 'lib/shopify_url.rb', line 44

def initialize(host, id = nil, qs = nil)
  super host + "/collections"
  self << "/" << id if id
  self << "?" << qs if qs
end