Class: Helpful::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/helpful/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(auth = {}, options = {}) ⇒ Client

Returns a new instance of Client.



13
14
15
# File 'lib/helpful/client.rb', line 13

def initialize(auth = {}, options = {})
  @http_client = Helpful::HttpClient::HttpClient.new(auth, options)
end

Instance Method Details

#accountsObject

These are like organizations which use Helpful.



18
19
20
# File 'lib/helpful/client.rb', line 18

def accounts()
  Helpful::Api::Accounts.new(@http_client)
end

#conversationsObject

Conversations in an account



28
29
30
# File 'lib/helpful/client.rb', line 28

def conversations()
  Helpful::Api::Conversations.new(@http_client)
end

#messagesObject

Messages in a conversation



33
34
35
# File 'lib/helpful/client.rb', line 33

def messages()
  Helpful::Api::Messages.new(@http_client)
end

#peopleObject

People who operate or interacted with the account



23
24
25
# File 'lib/helpful/client.rb', line 23

def people()
  Helpful::Api::People.new(@http_client)
end