Class: CircuitApi::Resources::Message
- Defined in:
- lib/circuit_api/resources/message.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#all, #delete, #delete_all, #find, #initialize, #update
Constructor Details
This class inherits a constructor from CircuitApi::Resources::Base
Instance Method Details
#api_resource ⇒ Object
4 5 6 |
# File 'lib/circuit_api/resources/message.rb', line 4 def api_resource 'conversations/:id/message' end |
#create(conversation_id, params) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/circuit_api/resources/message.rb', line 8 def create(conversation_id, params) result = connection( api_resource.sub(':id', conversation_id), params ).post response_to_object(result) end |