Sha256: 03a170a4b2536c65a1660936b7a0f03115bd83663299c36ba2a3c6e643bb2032

Contents?: true

Size: 854 Bytes

Versions: 4

Compression:

Stored size: 854 Bytes

Contents

module Spree
  module API
    class Client
      module OptionValues
        def option_values(options={})
          get('option_values', options)['option_values']
        end
        
        def option_value(permalink_or_id, options={})
          get("option_values/#{permalink_or_id}", options)
        end
        
        def new_option_value(options={})
          get("option_values/#{permalink_or_id}/new", options)
        end
        
        def create_option_value(options={})
          post("option_values", options)
        end
        
        def update_option_value(permalink_or_id, options={})
          put("option_values/#{permalink_or_id}", options)
        end
        
        def delete_option_value(permalink_or_id, options={})
          delete("option_values/#{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/option_values.rb
cq-spree-api-client-0.0.9 lib/spree-api-client/option_values.rb
cq-spree-api-client-0.0.6 lib/spree-api-client/option_values.rb
cq-spree-api-client-0.0.5 lib/spree-api-client/option_values.rb