Class: VoiceML::ConversationsV1ParticipantConversation
- Inherits:
-
Object
- Object
- VoiceML::ConversationsV1ParticipantConversation
- Defined in:
- lib/voiceml/models/conversations_v1.rb
Overview
ConversationsV1ParticipantConversation — read-only join of Participant + Conversation.
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 = {}) ⇒ ConversationsV1ParticipantConversation
constructor
A new instance of ConversationsV1ParticipantConversation.
Constructor Details
#initialize(attrs = {}) ⇒ ConversationsV1ParticipantConversation
Returns a new instance of ConversationsV1ParticipantConversation.
249 250 251 |
# File 'lib/voiceml/models/conversations_v1.rb', line 249 def initialize(attrs = {}) ATTRIBUTES.each { |f| instance_variable_set("@#{f}", attrs[f] || attrs[f.to_sym]) } end |
Class Method Details
.from_hash(h) ⇒ Object
252 |
# File 'lib/voiceml/models/conversations_v1.rb', line 252 def self.from_hash(h); h.nil? ? nil : new(h); end |