Class: VoiceML::ConversationsV1ServiceUser
- Inherits:
-
Object
- Object
- VoiceML::ConversationsV1ServiceUser
- Defined in:
- lib/voiceml/models/conversations_v1.rb
Overview
ConversationsV1ServiceUser — US..., scoped to a Service.
Constant Summary collapse
- ATTRIBUTES =
%w[ sid account_sid chat_service_sid role_sid identity friendly_name attributes is_online is_notifiable date_created date_updated url links ].freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ ConversationsV1ServiceUser
constructor
A new instance of ConversationsV1ServiceUser.
Constructor Details
#initialize(attrs = {}) ⇒ ConversationsV1ServiceUser
Returns a new instance of ConversationsV1ServiceUser.
534 535 536 |
# File 'lib/voiceml/models/conversations_v1.rb', line 534 def initialize(attrs = {}) ATTRIBUTES.each { |f| instance_variable_set("@#{f}", attrs[f] || attrs[f.to_sym]) } end |
Class Method Details
.from_hash(h) ⇒ Object
537 |
# File 'lib/voiceml/models/conversations_v1.rb', line 537 def self.from_hash(h); h.nil? ? nil : new(h); end |