Sha256: 2092c26d01e094fba2a768e17fbd791a13b1994844bc0d2dc38f45abf94ab2bd

Contents?: true

Size: 538 Bytes

Versions: 2

Compression:

Stored size: 538 Bytes

Contents

module Unforlogistics
  module Core
    module Addresses
      def get_addresses(filters={})
        get_request('/addresses', filters)
      end

      def get_address(id)
        get_request("/addresses/#{id}")
      end

      def create_address(attrs={})
        post_request('/addresses', attrs)
      end

      def update_address(id, attrs={})
        put_request('/addresses', attrs)
      end

      def set_address_status(id, status)
        put_request("/addresses/#{id}/status", { value: status })
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
unforlogistics-api-0.8 lib/unforlogistics/core/addresses.rb
unforlogistics-api-0.7 lib/unforlogistics/core/addresses.rb