Sha256: b29f4a1d5bba365cf92f3b5c5b2d9ed248bf2702760fcd39c022127ed9d3c6a3

Contents?: true

Size: 418 Bytes

Versions: 3

Compression:

Stored size: 418 Bytes

Contents

module Shipstation
  class Shipment < ApiResource
    extend Shipstation::APIOperations::List

    class << self
      def get_rates(params = {})
        response = Shipstation.request(:post, "shipments/getrates", params)

        return response
      end

      def create_label(params = {})
        response = Shipstation.request(:post, 'shipments/createlabel', params)

        response
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shipstation-0.16.7 lib/shipstation/shipment.rb
shipstation-0.16.6 lib/shipstation/shipment.rb
shipstation-0.16.5 lib/shipstation/shipment.rb