Module: UserEngage::Operation::Create
Instance Method Summary collapse
-
#create(attributes_hash) ⇒ Object
Public: Creates a new resource instance, create a new resource through UE API and returns the insance.
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 |