Class: ShopifyAPI::Event

Inherits:
Base show all
Includes:
DisablePrefixCheck
Defined in:
lib/shopify_api/resources/event.rb

Class Method Summary collapse

Methods included from Countable

#count

Methods inherited from ActiveResource::Base

#encode

Class Method Details

.prefix(options = {}) ⇒ Object

Hack to allow both Shop and other Events in through the same AR class



8
9
10
# File 'lib/shopify_api/resources/event.rb', line 8

def self.prefix(options={})
  options[:resource].nil? ? "/admin/" : "/admin/#{options[:resource]}/#{options[:resource_id]}/"
end