Class: VoiceML::ConversationsV1Role

Inherits:
Object
  • Object
show all
Defined in:
lib/voiceml/models/conversations_v1.rb

Overview

ConversationsV1Role — RL....

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

Constructor Details

#initialize(attrs = {}) ⇒ ConversationsV1Role

Returns a new instance of ConversationsV1Role.



134
135
136
# File 'lib/voiceml/models/conversations_v1.rb', line 134

def initialize(attrs = {})
  ATTRIBUTES.each { |f| instance_variable_set("@#{f}", attrs[f] || attrs[f.to_sym]) }
end

Class Method Details

.from_hash(h) ⇒ Object



137
# File 'lib/voiceml/models/conversations_v1.rb', line 137

def self.from_hash(h); h.nil? ? nil : new(h); end