Sha256: d3d84f5302e4c95e6a5885688cef608e1e1be856ca285d8d0029004fbc40d37d

Contents?: true

Size: 652 Bytes

Versions: 6

Compression:

Stored size: 652 Bytes

Contents

module Spree
  module API
    class Client
      module Zones
        def zones(options={})
          get('zones', options)['zones']
        end
        
        def zone(id, options={})
          get("zones/#{id}", options)
        end
        
        def new_zone(options={})
          get("zones/#{id}/new", options)
        end
        
        def create_zone(options={})
          post("zones", options)
        end
        
        def update_zone(id, options={})
          put("zones/#{id}", options)
        end
        
        def delete_zone(id, options={})
          delete("zones/#{id}", options)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
cq-spree-api-client-0.0.10 lib/spree-api-client/zones.rb
cq-spree-api-client-0.0.9 lib/spree-api-client/zones.rb
cq-spree-api-client-0.0.6 lib/spree-api-client/zones.rb
cq-spree-api-client-0.0.5 lib/spree-api-client/zones.rb
spree-api-client-0.0.2 lib/spree-api-client/zones.rb
spree-api-client-0.0.1 lib/spree-api-client/zones.rb