Sha256: ffcbb7efb124f554de311e7b42fab661b46cc9bf4201b2ac7353aeb3f085e48e

Contents?: true

Size: 261 Bytes

Versions: 13

Compression:

Stored size: 261 Bytes

Contents

module Shippo
  module API
    module Operations
      module Update
        def update(object_id, params={})
          response = Shippo::API.put("#{url}/#{CGI.escape(object_id)}/", params)
          self.from(response)
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
shippo-4.0.0 lib/shippo/api/operations/update.rb
shippo-3.1.0 lib/shippo/api/operations/update.rb
shippo-3.0.1 lib/shippo/api/operations/update.rb
shippo-3.0.0 lib/shippo/api/operations/update.rb
shippo-2.0.8 lib/shippo/api/operations/update.rb
shippo-2.0.7 lib/shippo/api/operations/update.rb
shippo-2.0.6 lib/shippo/api/operations/update.rb
shippo-2.0.5 lib/shippo/api/operations/update.rb
shippo-2.0.4 lib/shippo/api/operations/update.rb
shippo-2.0.3 lib/shippo/api/operations/update.rb
shippo-2.0.2 lib/shippo/api/operations/update.rb
shippo-2.0.1 lib/shippo/api/operations/update.rb
shippo-2.0.0 lib/shippo/api/operations/update.rb