Class: Helpful::Api::People
- Inherits:
-
Object
- Object
- Helpful::Api::People
- Defined in:
- lib/helpful/api/people.rb
Overview
People who operate or interacted with the account
Instance Method Summary collapse
-
#all(account_id, options = {}) ⇒ Object
List all people in the account the user has access to.
-
#initialize(client) ⇒ People
constructor
A new instance of People.
Constructor Details
#initialize(client) ⇒ People
Returns a new instance of People.
8 9 10 |
# File 'lib/helpful/api/people.rb', line 8 def initialize(client) @client = client end |
Instance Method Details
#all(account_id, options = {}) ⇒ Object
List all people in the account the user has access to
‘/accounts/:account_id/people’ GET
account_id - Identifier of the account
17 18 19 20 21 |
# File 'lib/helpful/api/people.rb', line 17 def all(account_id, = {}) body = .fetch(:query, {}) @client.get("/accounts/#{account_id}/people", body, ) end |