Class: InContact::CallLists

Inherits:
TokenAuthenticatedResource show all
Defined in:
lib/incontact/call_lists.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/call_lists.rb', line 3

def all
  connection.get("lists/call-lists")
end

#create(body) ⇒ Object



15
16
17
# File 'lib/incontact/call_lists.rb', line 15

def create(body)
  connection.post("lists/call-lists", body)
end

#find(call_list_id) ⇒ Object



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

def find(call_list_id)
  connection.get("lists/call-lists/#{call_list_id}")
end

#upload_file(call_list_id, body) ⇒ Object



11
12
13
# File 'lib/incontact/call_lists.rb', line 11

def upload_file(call_list_id, body)
  connection.post("lists/call-lists/#{call_list_id}/upload", body)
end