Class: CiscoWebex::Report
- Inherits:
-
Journey
- Object
- ContactCenter
- Journey
- CiscoWebex::Report
- Defined in:
- lib/CC/Journey/Report.rb
Instance Method Summary collapse
- #get(name) ⇒ Object
-
#initialize(token = nil, org_id = nil) ⇒ Report
constructor
A new instance of Report.
- #this ⇒ Object
Methods inherited from Journey
#actions, #aliases, #events, #head, #identities, #post, #profile_views, #put, #reports, #streams, #views
Methods inherited from ContactCenter
#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) ⇒ Report
Returns a new instance of Report.
6 7 8 9 10 11 12 13 14 |
# File 'lib/CC/Journey/Report.rb', line 6 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::Report" return false else @org_id = org_id @auth_token = token end end |
Instance Method Details
#get(name) ⇒ Object
20 21 22 |
# File 'lib/CC/Journey/Report.rb', line 20 def get(name) return CiscoWebex::RestCC.get(@auth_token, "/v1/journey/report/#{name}") end |
#this ⇒ Object
16 17 18 |
# File 'lib/CC/Journey/Report.rb', line 16 def this() puts "CiscoWebex::CC::Journey::Report - Org:#{@org_id}" end |