Class: ReamazeAPI::Conversation

Inherits:
Resource
  • Object
show all
Defined in:
lib/reamaze_api/conversation.rb

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from ReamazeAPI::Resource

Instance Method Details

#all(params = {}) ⇒ Object

Retrieve conversations.

Parameters:

Returns:

  • a Hash.



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).

Parameters:

Returns:

  • a Hash.



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.

Parameters:

Returns:

  • a Hash.



29
30
31
# File 'lib/reamaze_api/conversation.rb', line 29

def find(slug)
  get "/conversations/#{slug}"
end