Module: ProsperWorks::ApiOperations::Create
- Includes:
- Connect
- Included in:
- BaseEntity, Webhook
- Defined in:
- lib/prosperworks/api_operations/create.rb
Instance Method Summary collapse
Methods included from Connect
#get_uri, #handle_response, #send_request
Instance Method Details
#create(attributes) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/prosperworks/api_operations/create.rb', line 10 def create(attributes) entity = self.new(attributes) uri = get_uri(api_name) response = send_request("post", uri, entity) handle_response(self.new, response) end |