Class: VoiceML::ConversationsV1ConfigAddress

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

Overview

ConversationsV1ConfigAddress — IG....

Constant Summary collapse

ATTRIBUTES =
%w[
  sid account_sid type address friendly_name auto_creation
  date_created date_updated url address_country
].freeze

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ ConversationsV1ConfigAddress

Returns a new instance of ConversationsV1ConfigAddress.



224
225
226
# File 'lib/voiceml/models/conversations_v1.rb', line 224

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

Class Method Details

.from_hash(h) ⇒ Object



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

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