Sha256: b184f7753c416aecf2b9f6152437ef0513952939b559bfde670e845866380098
Contents?: true
Size: 470 Bytes
Versions: 5
Compression:
Stored size: 470 Bytes
Contents
module Shipcloud module Operations module Create module ClassMethods # Creates a new object # # @param [Hash] attributes The attributes of the created object def create(attributes) response = Shipcloud.request(:post, "#{self.name.split("::").last.downcase}s", attributes) self.new(response) end end def self.included(base) base.extend(ClassMethods) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems