Class: Twilio::REST::FlexApi::V1
- Inherits:
-
Version
- Object
- Version
- Twilio::REST::FlexApi::V1
show all
- Defined in:
- lib/twilio-ruby/rest/flex_api/v1.rb,
lib/twilio-ruby/rest/flex_api/v1/channel.rb,
lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb,
lib/twilio-ruby/rest/flex_api/v1/assessments.rb,
lib/twilio-ruby/rest/flex_api/v1/interaction.rb,
lib/twilio-ruby/rest/flex_api/v1/web_channel.rb,
lib/twilio-ruby/rest/flex_api/v1/configuration.rb,
lib/twilio-ruby/rest/flex_api/v1/insights_session.rb,
lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb,
lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb,
lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb,
lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb,
lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb,
lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb,
lib/twilio-ruby/rest/flex_api/v1/insights_settings_answer_sets.rb,
lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb,
lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb,
lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb,
lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb,
lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb
Defined Under Namespace
Classes: AssessmentsContext, AssessmentsInstance, AssessmentsList, AssessmentsPage, ChannelContext, ChannelInstance, ChannelList, ChannelPage, ConfigurationContext, ConfigurationInstance, ConfigurationList, ConfigurationPage, FlexFlowContext, FlexFlowInstance, FlexFlowList, FlexFlowPage, InsightsAssessmentsCommentInstance, InsightsAssessmentsCommentList, InsightsAssessmentsCommentPage, InsightsConversationsInstance, InsightsConversationsList, InsightsConversationsPage, InsightsQuestionnairesCategoryContext, InsightsQuestionnairesCategoryInstance, InsightsQuestionnairesCategoryList, InsightsQuestionnairesCategoryPage, InsightsQuestionnairesContext, InsightsQuestionnairesInstance, InsightsQuestionnairesList, InsightsQuestionnairesPage, InsightsQuestionnairesQuestionContext, InsightsQuestionnairesQuestionInstance, InsightsQuestionnairesQuestionList, InsightsQuestionnairesQuestionPage, InsightsSegmentsInstance, InsightsSegmentsList, InsightsSegmentsPage, InsightsSessionContext, InsightsSessionInstance, InsightsSessionList, InsightsSessionPage, InsightsSettingsAnswerSetsInstance, InsightsSettingsAnswerSetsList, InsightsSettingsAnswerSetsPage, InsightsSettingsCommentInstance, InsightsSettingsCommentList, InsightsSettingsCommentPage, InsightsUserRolesContext, InsightsUserRolesInstance, InsightsUserRolesList, InsightsUserRolesPage, InteractionContext, InteractionInstance, InteractionList, InteractionPage, WebChannelContext, WebChannelInstance, WebChannelList, WebChannelPage
Instance Attribute Summary
Attributes inherited from Version
#domain
Instance Method Summary
collapse
Methods inherited from Version
#absolute_url, #create, #delete, #exception, #fetch, #page, #read_limits, #relative_uri, #request, #stream, #update
Constructor Details
#initialize(domain) ⇒ V1
Initialize the V1 version of FlexApi
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# File 'lib/twilio-ruby/rest/flex_api/v1.rb', line 21
def initialize(domain)
super
@version = 'v1'
@assessments = nil
@channel = nil
@configuration = nil
@flex_flow = nil
@insights_assessments_comment = nil
@insights_conversations = nil
@insights_questionnaires = nil
@insights_questionnaires_category = nil
@insights_questionnaires_question = nil
@insights_segments = nil
@insights_session = nil
@insights_settings_answer_sets = nil
@insights_settings_comment = nil
@insights_user_roles = nil
@interaction = nil
@web_channel = nil
end
|
Instance Method Details
46
47
48
49
50
51
52
53
54
55
|
# File 'lib/twilio-ruby/rest/flex_api/v1.rb', line 46
def assessments(assessment_sid=:unset)
if assessment_sid.nil?
raise ArgumentError, 'assessment_sid cannot be nil'
end
if assessment_sid == :unset
@assessments ||= AssessmentsList.new self
else
AssessmentsContext.new(self, assessment_sid)
end
end
|
60
61
62
63
64
65
66
67
68
69
|
# File 'lib/twilio-ruby/rest/flex_api/v1.rb', line 60
def channel(sid=:unset)
if sid.nil?
raise ArgumentError, 'sid cannot be nil'
end
if sid == :unset
@channel ||= ChannelList.new self
else
ChannelContext.new(self, sid)
end
end
|
#configuration ⇒ Twilio::REST::FlexApi::V1::configurationContext
72
73
74
|
# File 'lib/twilio-ruby/rest/flex_api/v1.rb', line 72
def configuration
@configuration ||= ConfigurationContext.new self
end
|
79
80
81
82
83
84
85
86
87
88
|
# File 'lib/twilio-ruby/rest/flex_api/v1.rb', line 79
def flex_flow(sid=:unset)
if sid.nil?
raise ArgumentError, 'sid cannot be nil'
end
if sid == :unset
@flex_flow ||= FlexFlowList.new self
else
FlexFlowContext.new(self, sid)
end
end
|
96
97
98
|
# File 'lib/twilio-ruby/rest/flex_api/v1.rb', line 96
def insights_conversations
@insights_conversations ||= InsightsConversationsList.new self
end
|
103
104
105
106
107
108
109
110
111
112
|
# File 'lib/twilio-ruby/rest/flex_api/v1.rb', line 103
def insights_questionnaires(questionnaire_sid=:unset)
if questionnaire_sid.nil?
raise ArgumentError, 'questionnaire_sid cannot be nil'
end
if questionnaire_sid == :unset
@insights_questionnaires ||= InsightsQuestionnairesList.new self
else
InsightsQuestionnairesContext.new(self, questionnaire_sid)
end
end
|
117
118
119
120
121
122
123
124
125
126
|
# File 'lib/twilio-ruby/rest/flex_api/v1.rb', line 117
def insights_questionnaires_category(category_sid=:unset)
if category_sid.nil?
raise ArgumentError, 'category_sid cannot be nil'
end
if category_sid == :unset
@insights_questionnaires_category ||= InsightsQuestionnairesCategoryList.new self
else
InsightsQuestionnairesCategoryContext.new(self, category_sid)
end
end
|
131
132
133
134
135
136
137
138
139
140
|
# File 'lib/twilio-ruby/rest/flex_api/v1.rb', line 131
def insights_questionnaires_question(question_sid=:unset)
if question_sid.nil?
raise ArgumentError, 'question_sid cannot be nil'
end
if question_sid == :unset
@insights_questionnaires_question ||= InsightsQuestionnairesQuestionList.new self
else
InsightsQuestionnairesQuestionContext.new(self, question_sid)
end
end
|
143
144
145
|
# File 'lib/twilio-ruby/rest/flex_api/v1.rb', line 143
def insights_segments
@insights_segments ||= InsightsSegmentsList.new self
end
|
#insights_session ⇒ Twilio::REST::FlexApi::V1::insightsSessionContext
148
149
150
|
# File 'lib/twilio-ruby/rest/flex_api/v1.rb', line 148
def insights_session
@insights_session ||= InsightsSessionContext.new self
end
|
153
154
155
|
# File 'lib/twilio-ruby/rest/flex_api/v1.rb', line 153
def insights_settings_answer_sets
@insights_settings_answer_sets ||= InsightsSettingsAnswerSetsList.new self
end
|
#insights_user_roles ⇒ Twilio::REST::FlexApi::V1::insightsUserRolesContext
163
164
165
|
# File 'lib/twilio-ruby/rest/flex_api/v1.rb', line 163
def insights_user_roles
@insights_user_roles ||= InsightsUserRolesContext.new self
end
|
170
171
172
173
174
175
176
177
178
179
|
# File 'lib/twilio-ruby/rest/flex_api/v1.rb', line 170
def interaction(sid=:unset)
if sid.nil?
raise ArgumentError, 'sid cannot be nil'
end
if sid == :unset
@interaction ||= InteractionList.new self
else
InteractionContext.new(self, sid)
end
end
|
#to_s ⇒ Object
Provide a user friendly representation
196
197
198
|
# File 'lib/twilio-ruby/rest/flex_api/v1.rb', line 196
def to_s
'<Twilio::REST::FlexApi::V1>';
end
|
184
185
186
187
188
189
190
191
192
193
|
# File 'lib/twilio-ruby/rest/flex_api/v1.rb', line 184
def web_channel(sid=:unset)
if sid.nil?
raise ArgumentError, 'sid cannot be nil'
end
if sid == :unset
@web_channel ||= WebChannelList.new self
else
WebChannelContext.new(self, sid)
end
end
|