Class: ShopifyAPI::Shop
- Defined in:
- lib/shopify_api.rb
Overview
Shop object. Use Shop.current to receive the shop.
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Countable
Class Method Details
.current ⇒ Object
192 193 194 |
# File 'lib/shopify_api.rb', line 192 def self.current find(:one, :from => "/admin/shop.#{format.extension}") end |
Instance Method Details
#add_metafield(metafield) ⇒ Object
200 201 202 203 204 |
# File 'lib/shopify_api.rb', line 200 def () raise ArgumentError, "You can only add metafields to resource that has been saved" if new? .save end |
#events ⇒ Object
206 207 208 |
# File 'lib/shopify_api.rb', line 206 def events Event.find(:all) end |
#metafields ⇒ Object
196 197 198 |
# File 'lib/shopify_api.rb', line 196 def Metafield.find(:all) end |