Sha256: 213222ef28f26c324839f8e01ddd66269c8d6bcc845085743db2267e0794f385

Contents?: true

Size: 298 Bytes

Versions: 4

Compression:

Stored size: 298 Bytes

Contents

module Spree
  module API
    class Client
      module Promotions
        def promotions(options={})
          get('promotions', options)
        end

        def promotion(permalink_or_id, options={})
          get("promotions/#{permalink_or_id}", options)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cq-spree-api-client-0.0.10 lib/spree-api-client/promotions.rb
cq-spree-api-client-0.0.9 lib/spree-api-client/promotions.rb
cq-spree-api-client-0.0.6 lib/spree-api-client/promotions.rb
cq-spree-api-client-0.0.5 lib/spree-api-client/promotions.rb