Class: InContact::Agents

Inherits:
TokenAuthenticatedResource show all
Defined in:
lib/incontact/agents.rb

Instance Attribute Summary

Attributes inherited from TokenAuthenticatedResource

#connection

Instance Method Summary collapse

Methods inherited from TokenAuthenticatedResource

#initialize

Constructor Details

This class inherits a constructor from InContact::TokenAuthenticatedResource

Instance Method Details

#allObject



3
4
5
# File 'lib/incontact/agents.rb', line 3

def all
  connection.get("agents")
end

#find(agent_id) ⇒ Object



7
8
9
# File 'lib/incontact/agents.rb', line 7

def find(agent_id)
  connection.get("agents/#{agent_id}")
end