Module: Delighted::Operations::Create::ClassMethods
- Defined in:
- lib/delighted/operations/create.rb
Instance Method Summary collapse
Instance Method Details
#create(attributes = {}, client = Delighted.shared_client) ⇒ Object
9 10 11 12 13 14 |
# 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 |