Class: Twilio::REST::FlexApi::V1::InsightsConversationsInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::FlexApi::V1::InsightsConversationsInstance
- Defined in:
- lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb
Instance Method Summary collapse
-
#account_id ⇒ String
The id of the account.
-
#conversation_id ⇒ String
The unique id of the conversation.
-
#initialize(version, payload) ⇒ InsightsConversationsInstance
constructor
Initialize the InsightsConversationsInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#segment_count ⇒ String
The count of segments for a conversation.
-
#segments ⇒ Array<Hash>
The Segments of a conversation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload) ⇒ InsightsConversationsInstance
Initialize the InsightsConversationsInstance
275 276 277 278 279 280 281 282 283 284 285 286 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb', line 275 def initialize(version, payload ) super(version) # Marshaled Properties @properties = { 'account_id' => payload['account_id'], 'conversation_id' => payload['conversation_id'], 'segment_count' => payload['segment_count'] == nil ? payload['segment_count'] : payload['segment_count'].to_i, 'segments' => payload['segments'], } end |
Instance Method Details
#account_id ⇒ String
Returns The id of the account.
291 292 293 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb', line 291 def account_id @properties['account_id'] end |
#conversation_id ⇒ String
Returns The unique id of the conversation.
297 298 299 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb', line 297 def conversation_id @properties['conversation_id'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
321 322 323 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb', line 321 def inspect "<Twilio.FlexApi.V1.InsightsConversationsInstance>" end |
#segment_count ⇒ String
Returns The count of segments for a conversation.
303 304 305 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb', line 303 def segment_count @properties['segment_count'] end |
#segments ⇒ Array<Hash>
Returns The Segments of a conversation.
309 310 311 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb', line 309 def segments @properties['segments'] end |
#to_s ⇒ Object
Provide a user friendly representation
315 316 317 |
# File 'lib/twilio-ruby/rest/flex_api/v1/insights_conversations.rb', line 315 def to_s "<Twilio.FlexApi.V1.InsightsConversationsInstance>" end |