Class: ReamazeAPI::Conversation
- Defined in:
- lib/reamaze_api/conversation.rb
Instance Method Summary collapse
-
#all(params = {}) ⇒ Object
Retrieve conversations.
-
#create(params) ⇒ Object
Create a new conversation (on behalf of a customer).
-
#find(slug) ⇒ Object
Retrieve a specific conversation.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from ReamazeAPI::Resource
Instance Method Details
#all(params = {}) ⇒ Object
Retrieve conversations.
14 15 16 |
# File 'lib/reamaze_api/conversation.rb', line 14 def all(params = {}) paginate "/conversations", :conversations, params end |
#create(params) ⇒ Object
Create a new conversation (on behalf of a customer).
44 45 46 |
# File 'lib/reamaze_api/conversation.rb', line 44 def create(params) post "/conversations", params end |
#find(slug) ⇒ Object
Retrieve a specific conversation.
29 30 31 |
# File 'lib/reamaze_api/conversation.rb', line 29 def find(slug) get "/conversations/#{slug}" end |