Class: VoiceML::ConversationsV1ServiceRole
- Inherits:
-
Object
- Object
- VoiceML::ConversationsV1ServiceRole
- Defined in:
- lib/voiceml/models/conversations_v1.rb
Overview
ConversationsV1ServiceRole — RL..., scoped to a Service.
Constant Summary collapse
- ATTRIBUTES =
%w[ sid account_sid chat_service_sid friendly_name type permissions date_created date_updated url ].freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ ConversationsV1ServiceRole
constructor
A new instance of ConversationsV1ServiceRole.
Constructor Details
#initialize(attrs = {}) ⇒ ConversationsV1ServiceRole
Returns a new instance of ConversationsV1ServiceRole.
512 513 514 |
# File 'lib/voiceml/models/conversations_v1.rb', line 512 def initialize(attrs = {}) ATTRIBUTES.each { |f| instance_variable_set("@#{f}", attrs[f] || attrs[f.to_sym]) } end |
Class Method Details
.from_hash(h) ⇒ Object
515 |
# File 'lib/voiceml/models/conversations_v1.rb', line 515 def self.from_hash(h); h.nil? ? nil : new(h); end |