Class: VoiceML::ConversationsV1ConfigAddressList

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

Constant Summary

Constants included from V1Pageable

V1Pageable::META_FIELDS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from V1Pageable

#assign_meta_fields

Constructor Details

#initialize(hash = {}) ⇒ ConversationsV1ConfigAddressList

Returns a new instance of ConversationsV1ConfigAddressList.



233
234
235
236
# File 'lib/voiceml/models/conversations_v1.rb', line 233

def initialize(hash = {})
  assign_meta_fields(hash)
  @addresses = (hash['addresses'] || []).map { |h| ConversationsV1ConfigAddress.from_hash(h) }
end

Instance Attribute Details

#addressesObject (readonly)

Returns the value of attribute addresses.



232
233
234
# File 'lib/voiceml/models/conversations_v1.rb', line 232

def addresses
  @addresses
end