Class: Helpful::Client
- Inherits:
-
Object
- Object
- Helpful::Client
- Defined in:
- lib/helpful/client.rb
Instance Method Summary collapse
-
#accounts ⇒ Object
These are like organizations which use Helpful.
-
#conversations ⇒ Object
Conversations in an account.
-
#initialize(auth = {}, options = {}) ⇒ Client
constructor
A new instance of Client.
-
#messages ⇒ Object
Messages in a conversation.
-
#people ⇒ Object
People who operate or interacted with the account.
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 = {}, = {}) @http_client = Helpful::HttpClient::HttpClient.new(auth, ) end |
Instance Method Details
#accounts ⇒ Object
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 |
#conversations ⇒ Object
Conversations in an account
28 29 30 |
# File 'lib/helpful/client.rb', line 28 def conversations() Helpful::Api::Conversations.new(@http_client) end |