Module: Supportbee::Client::Agents

Included in:
Supportbee::Client
Defined in:
lib/supportbee/client/agents.rb

Instance Method Summary collapse

Instance Method Details

#agent(id) ⇒ Object



9
10
11
12
# File 'lib/supportbee/client/agents.rb', line 9

def agent(id)
  response = @conn.get "/users/#{id}.json"
  JSON.parse(response.body)
end

#agents(extra_parameters = {}) ⇒ Object



5
6
7
# File 'lib/supportbee/client/agents.rb', line 5

def agents(extra_parameters = {})
  index('users', extra_parameters) 
end