Class: Twilio::REST::FlexApi::V1::InsightsAssessmentsCommentInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::FlexApi::V1::InsightsAssessmentsCommentInstance
- Defined in:
- lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb
Overview
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].
Instance Method Summary collapse
-
#account_sid ⇒ String
The SID of the Account that created the resource and owns this Flex Insights.
-
#agent_id ⇒ String
Agent Id.
-
#assessment_id ⇒ String
The Unique Assessment Id.
-
#comment ⇒ Hash
The assessment comment.
-
#initialize(version, payload) ⇒ InsightsAssessmentsCommentInstance
constructor
Initialize the InsightsAssessmentsCommentInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#offset ⇒ String
Offset.
-
#report ⇒ Boolean
Part of assessment report.
-
#segment_id ⇒ String
Segment Id.
-
#timestamp ⇒ String
The timestamp.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#url ⇒ String
The url.
-
#user_email ⇒ String
The user email id.
-
#user_name ⇒ String
The user name.
-
#weight ⇒ String
The weightage.
Constructor Details
#initialize(version, payload) ⇒ InsightsAssessmentsCommentInstance
Initialize the InsightsAssessmentsCommentInstance
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 207 def initialize(version, payload) super(version) # Marshaled Properties @properties = { 'account_sid' => payload['account_sid'], 'assessment_id' => payload['assessment_id'], 'comment' => payload['comment'], 'offset' => payload['offset'] == nil ? payload['offset'] : payload['offset'].to_f, 'report' => payload['report'], 'weight' => payload['weight'] == nil ? payload['weight'] : payload['weight'].to_f, 'agent_id' => payload['agent_id'], 'segment_id' => payload['segment_id'], 'user_name' => payload['user_name'], 'user_email' => payload['user_email'], 'timestamp' => payload['timestamp'] == nil ? payload['timestamp'] : payload['timestamp'].to_f, 'url' => payload['url'], } end |
Instance Method Details
#account_sid ⇒ String
229 230 231 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 229 def account_sid @properties['account_sid'] end |
#agent_id ⇒ String
265 266 267 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 265 def agent_id @properties['agent_id'] end |
#assessment_id ⇒ String
235 236 237 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 235 def assessment_id @properties['assessment_id'] end |
#comment ⇒ Hash
241 242 243 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 241 def comment @properties['comment'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
307 308 309 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 307 def inspect "<Twilio.FlexApi.V1.InsightsAssessmentsCommentInstance>" end |
#offset ⇒ String
247 248 249 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 247 def offset @properties['offset'] end |
#report ⇒ Boolean
253 254 255 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 253 def report @properties['report'] end |
#segment_id ⇒ String
271 272 273 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 271 def segment_id @properties['segment_id'] end |
#timestamp ⇒ String
289 290 291 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 289 def @properties['timestamp'] end |
#to_s ⇒ Object
Provide a user friendly representation
301 302 303 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 301 def to_s "<Twilio.FlexApi.V1.InsightsAssessmentsCommentInstance>" end |
#url ⇒ String
295 296 297 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 295 def url @properties['url'] end |
#user_email ⇒ String
283 284 285 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 283 def user_email @properties['user_email'] end |
#user_name ⇒ String
277 278 279 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 277 def user_name @properties['user_name'] end |
#weight ⇒ String
259 260 261 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 259 def weight @properties['weight'] end |