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
193 194 195 |
# File 'lib/shopify_api.rb', line 193 def self.current find(:one, :from => "/admin/shop.#{format.extension}") end |
Instance Method Details
#add_metafield(metafield) ⇒ Object
201 202 203 204 205 |
# File 'lib/shopify_api.rb', line 201 def () raise ArgumentError, "You can only add metafields to resource that has been saved" if new? .save end |
#events ⇒ Object
207 208 209 |
# File 'lib/shopify_api.rb', line 207 def events Event.find(:all) end |
#metafields ⇒ Object
197 198 199 |
# File 'lib/shopify_api.rb', line 197 def Metafield.find(:all) end |