Class: ShopifyURL::Admin::ShippingLabel

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

Instance Method Summary collapse

Instance Method Details

#new(params = nil) ⇒ Object



158
159
160
161
162
# File 'lib/shopify_url.rb', line 158

def new(params = nil)
  url = self + "/new"
  url << "?" << URI.encode_www_form(params.to_a) if params && params.any?
  url
end