module Shipcloud::Operations::Update

Public Class Methods

included(base) click to toggle source
# File lib/shipcloud/operations/update.rb, line 26
def self.included(base)
  base.extend(ClassMethods)
end

Public Instance Methods

update(attributes = {}, **kwargs) click to toggle source

Updates an object

@param [Hash] attributes The attributes that should be updated @param [String] optional api_key The api key. If no api key is given, Shipcloud.api_key will be used for the request @param [String] optional affiliate_id Your affiliate ID. If no affiliate ID is given, Shipcloud.affiliate_id will be used for the request

# File lib/shipcloud/operations/update.rb, line 37
def update(attributes = {}, **kwargs)
  self.class.update(id, attributes, **kwargs)
end