Sha256: bdbf0003459bd6003b17feaae58c9391dd1f12293afc5da9b1ea3330c11815d2

Contents?: true

Size: 322 Bytes

Versions: 3

Compression:

Stored size: 322 Bytes

Contents

module ShopifyAPI
  class Event < Base
    self.prefix = "/admin/:resource/:resource_id/"
    
    # Hack to allow both Shop and other Events in through the same AR class
    def self.prefix(options={})
      options[:resource].nil? ? "/admin/" : "/admin/#{options[:resource]}/#{options[:resource_id]}/"
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
shopify_api-2.1.0 lib/shopify_api/resources/event.rb
shopify_api-2.0.0 lib/shopify_api/resources/event.rb
th_shopify_api-1.2.6.pre lib/shopify_api/resources/event.rb