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
Instance Method Summary collapse
-
#account_sid ⇒ String
The SID of the [Account](www.twilio.com/docs/iam/api/account) that created the Flex Insights resource and owns this resource.
-
#agent_id ⇒ String
The id of the agent.
-
#assessment_sid ⇒ String
The SID of the assessment.
-
#comment ⇒ Hash
The comment added for assessment.
-
#initialize(version, payload) ⇒ InsightsAssessmentsCommentInstance
constructor
Initialize the InsightsAssessmentsCommentInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#offset ⇒ Float
The offset.
-
#report ⇒ Boolean
The flag indicating if this assessment is part of report.
-
#segment_id ⇒ String
The id of the segment.
-
#timestamp ⇒ Float
The timestamp when the record is inserted.
-
#to_s ⇒ Object
Provide a user friendly representation.
- #url ⇒ String
-
#user_email ⇒ String
The email id of the user.
-
#user_name ⇒ String
The name of the user.
-
#weight ⇒ Float
The weightage given to this comment.
Constructor Details
#initialize(version, payload) ⇒ InsightsAssessmentsCommentInstance
Initialize the InsightsAssessmentsCommentInstance
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 220 def initialize(version, payload ) super(version) # Marshaled Properties @properties = { 'account_sid' => payload['account_sid'], 'assessment_sid' => payload['assessment_sid'], 'comment' => payload['comment'], 'offset' => payload['offset'], 'report' => payload['report'], 'weight' => payload['weight'], 'agent_id' => payload['agent_id'], 'segment_id' => payload['segment_id'], 'user_name' => payload['user_name'], 'user_email' => payload['user_email'], 'timestamp' => payload['timestamp'], 'url' => payload['url'], } end |
Instance Method Details
#account_sid ⇒ String
Returns The SID of the [Account](www.twilio.com/docs/iam/api/account) that created the Flex Insights resource and owns this resource.
243 244 245 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 243 def account_sid @properties['account_sid'] end |
#agent_id ⇒ String
Returns The id of the agent.
279 280 281 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 279 def agent_id @properties['agent_id'] end |
#assessment_sid ⇒ String
Returns The SID of the assessment.
249 250 251 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 249 def assessment_sid @properties['assessment_sid'] end |
#comment ⇒ Hash
Returns The comment added for assessment.
255 256 257 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 255 def comment @properties['comment'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
321 322 323 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 321 def inspect "<Twilio.FlexApi.V1.InsightsAssessmentsCommentInstance>" end |
#offset ⇒ Float
Returns The offset.
261 262 263 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 261 def offset @properties['offset'] end |
#report ⇒ Boolean
Returns The flag indicating if this assessment is part of report.
267 268 269 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 267 def report @properties['report'] end |
#segment_id ⇒ String
Returns The id of the segment.
285 286 287 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 285 def segment_id @properties['segment_id'] end |
#timestamp ⇒ Float
Returns The timestamp when the record is inserted.
303 304 305 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 303 def @properties['timestamp'] end |
#to_s ⇒ Object
Provide a user friendly representation
315 316 317 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 315 def to_s "<Twilio.FlexApi.V1.InsightsAssessmentsCommentInstance>" end |
#url ⇒ String
309 310 311 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 309 def url @properties['url'] end |
#user_email ⇒ String
Returns The email id of the user.
297 298 299 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 297 def user_email @properties['user_email'] end |
#user_name ⇒ String
Returns The name of the user.
291 292 293 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 291 def user_name @properties['user_name'] end |
#weight ⇒ Float
Returns The weightage given to this comment.
273 274 275 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb', line 273 def weight @properties['weight'] end |