Module: UserEngage::Operation::Create

Included in:
Company, User
Defined in:
lib/user_engage/operation/create.rb

Instance Method Summary collapse

Instance Method Details

#create(attributes_hash) ⇒ Object

Public: Creates a new resource instance, create a new resource through UE API and returns the insance.



11
12
13
14
15
16
# File 'lib/user_engage/operation/create.rb', line 11

def create(attributes_hash)
  check_for_required_params!(attributes_hash)
  response = create_remote_resource(attributes_hash)
  check_for_response_code!(response)
  construct_new_resource(response)
end