Class: ShopifyURL::Admin::Theme

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

Instance Method Summary collapse

Constructor Details

#initialize(base, id, qs = nil) ⇒ Theme

Returns a new instance of Theme.



166
167
168
169
# File 'lib/shopify_url.rb', line 166

def initialize(base, id, qs = nil)
  super base + "/themes/" << id.to_s
  self << "?" << qs if qs
end

Instance Method Details

#editorObject

Not the code editor, the theme customization page



172
173
174
# File 'lib/shopify_url.rb', line 172

def editor
  self + "/editor"
end