Class: VoiceML::ConversationsV1ServiceParticipantConversation
- Inherits:
-
Object
- Object
- VoiceML::ConversationsV1ServiceParticipantConversation
- Defined in:
- lib/voiceml/models/conversations_v1.rb
Overview
ConversationsV1ServiceParticipantConversation — read-only join, service-scoped.
Constant Summary collapse
- ATTRIBUTES =
%w[ account_sid chat_service_sid participant_sid participant_user_sid participant_identity participant_messaging_binding conversation_sid conversation_unique_name conversation_friendly_name conversation_attributes conversation_date_created conversation_date_updated conversation_created_by conversation_state conversation_timers links ].freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ ConversationsV1ServiceParticipantConversation
constructor
A new instance of ConversationsV1ServiceParticipantConversation.
Constructor Details
#initialize(attrs = {}) ⇒ ConversationsV1ServiceParticipantConversation
Returns a new instance of ConversationsV1ServiceParticipantConversation.
466 467 468 |
# File 'lib/voiceml/models/conversations_v1.rb', line 466 def initialize(attrs = {}) ATTRIBUTES.each { |f| instance_variable_set("@#{f}", attrs[f] || attrs[f.to_sym]) } end |
Class Method Details
.from_hash(h) ⇒ Object
469 |
# File 'lib/voiceml/models/conversations_v1.rb', line 469 def self.from_hash(h); h.nil? ? nil : new(h); end |