Class: Helpful::Api::People

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

Overview

People who operate or interacted with the account

Instance Method Summary collapse

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(, options = {})
  body = options.fetch(:query, {})

  @client.get("/accounts/#{}/people", body, options)
end