module Delighted::Operations::Create::ClassMethods
Public Instance Methods
create(attributes = {}, client = Delighted.shared_client)
click to toggle source
# File lib/delighted/operations/create.rb, line 9 def create(attributes = {}, client = Delighted.shared_client) params = Utils.hash_without_key(attributes, :id) params = Utils.serialize_values(params) json = client.post_json(path, params) new(json) end