Sha256: 428606521201391ac684e7256648993b35834167614fc4a682c12d6925f88f1e
Contents?: true
Size: 700 Bytes
Versions: 2
Compression:
Stored size: 700 Bytes
Contents
module Shipcloud module Operations module Delete module ClassMethods # Deletes the given object # # @param [String] id The id of the object that gets deleted # @param \[String\] optional api_key The api key. If no api key is given, Shipcloud.api_key # will be used for the request def delete(id, api_key: nil, affiliate_id: nil) Shipcloud.request( :delete, "#{base_url}/#{id}", {}, api_key: api_key, affiliate_id: affiliate_id, ) true end end def self.included(base) base.extend(ClassMethods) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shipcloud-0.11.0 | lib/shipcloud/operations/delete.rb |
shipcloud-0.10.0 | lib/shipcloud/operations/delete.rb |