Class: ShopifyURL::Store::Collections
- Inherits:
-
String
- Object
- String
- ShopifyURL::Store::Collections
- Defined in:
- lib/shopify_url.rb
Instance Method Summary collapse
-
#initialize(host, id = nil, qs = nil) ⇒ Collections
constructor
A new instance of Collections.
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 |