Class: CiscoWebex::Views
Instance Method Summary
collapse
Methods inherited from Journey
#actions, #aliases, #events, #head, #identities, #post, #profile_views, #put, #reports, #streams, #views
#address_books, #agent_profiles, #agents, #auxiliary_codes, #captures, #dial_plans, #entry_point_mappings, #entry_points, #head, #journey, #multimedia_profiles, #my_org, #outbound_ani, #post, #put, #queues, #sites, #skill_profiles, #skills, #subscriptions, #tasks, #teams, #user_profiles, #users
Constructor Details
#initialize(token = nil, org_id = nil) ⇒ Views
Returns a new instance of Views.
7
8
9
10
11
12
13
14
15
16
|
# File 'lib/CC/Journey/Views.rb', line 7
def initialize(token=nil, org_id=nil)
if token == nil || org_id == nil
STDERR.puts "Must provde token and org_idwhen initiating CiscoWebex::CC::Journey::View"
return false
else
@org_id = org_id
@auth_token = token
@template = Template.new(@auth_token, @org_id)
end
end
|
Instance Method Details
#create(params) ⇒ Object
31
32
33
34
35
36
37
38
|
# File 'lib/CC/Journey/Views.rb', line 31
def create(params)
if ! params.has_key?('ViewId')
STDERR.puts "CiscoWebex::CC::Journey::View - Required parameter 'ViewId' missing"
return False
end
return CiscoWebex::RestCC.post(@auth_token, "/v1/journey/views")
end
|
#get(view_id = nil, instance_id = nil) ⇒ Object
22
23
24
25
26
27
28
29
|
# File 'lib/CC/Journey/Views.rb', line 22
def get(view_id=nil, instance_id=nil)
if view_id && instance_id
return CiscoWebex::RestCC.get(@auth_token, "/v1/journey/views", { "ViewId"=> view_id, "instanceId"=> instance_id })
else
STDERR.puts "CiscoWebex::CC::Journey::View - Required parameter 'ViewId' and 'instanceId' missing"
return false
end
end
|
#template ⇒ Object
40
41
42
|
# File 'lib/CC/Journey/Views.rb', line 40
def template()
return @template
end
|
#this ⇒ Object
18
19
20
|
# File 'lib/CC/Journey/Views.rb', line 18
def this()
puts "CiscoWebex::CC::Journey::View - Org:#{@org_id}"
end
|