Class: InContact::Api

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeApi

Returns a new instance of Api.



5
6
7
# File 'lib/incontact/api.rb', line 5

def initialize
  @token = InContact::Tokens.get
end

Instance Attribute Details

#tokenObject (readonly)

Returns the value of attribute token.



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

def token
  @token
end

Instance Method Details

#agent_sessionsObject



17
18
19
# File 'lib/incontact/api.rb', line 17

def agent_sessions
  @agent_sessions ||=  create_resource(InContact::Resources::AGENT_SESSIONS)
end

#agentsObject



9
10
11
# File 'lib/incontact/api.rb', line 9

def agents
  @agents ||= create_resource(InContact::Resources::AGENTS)
end

#call_listsObject



21
22
23
# File 'lib/incontact/api.rb', line 21

def call_lists
  @call_lists ||=  create_resource(InContact::Resources::CALL_LISTS)
end

#contactsObject



13
14
15
# File 'lib/incontact/api.rb', line 13

def contacts
  @contacts ||= create_resource(InContact::Resources::CONTACTS)
end