Sha256: 7ef8aa13292724a25ba3403271951a7b687c28f4a29760edb200ada29e77a844
Contents?: true
Size: 389 Bytes
Versions: 2
Compression:
Stored size: 389 Bytes
Contents
module SweetTooth module APIOperations module Create module ClassMethods def create(params={}, api_key=nil) response, api_key = SweetTooth.request(:post, self.url, api_key, params) Util.convert_to_sweettooth_object(response, api_key) 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 |
---|---|
sweettooth-1.1.0 | lib/sweettooth/api_operations/create.rb |
sweettooth-1.0.0 | lib/sweettooth/api_operations/create.rb |