Class: VoiceML::VoiceV1IpRecordList

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

Constant Summary

Constants included from V1Pageable

VoiceML::V1Pageable::META_FIELDS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from V1Pageable

#assign_meta_fields

Constructor Details

#initialize(hash = {}) ⇒ VoiceV1IpRecordList

Returns a new instance of VoiceV1IpRecordList.



49
50
51
52
# File 'lib/voiceml/models/voice_v1.rb', line 49

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

Instance Attribute Details

#ip_recordsObject (readonly)

Returns the value of attribute ip_records.



48
49
50
# File 'lib/voiceml/models/voice_v1.rb', line 48

def ip_records
  @ip_records
end