Class: VoiceML::VoiceV1IpRecordList
- Inherits:
-
Object
- Object
- VoiceML::VoiceV1IpRecordList
- Includes:
- V1Pageable
- Defined in:
- lib/voiceml/models/voice_v1.rb
Constant Summary
Constants included from V1Pageable
VoiceML::V1Pageable::META_FIELDS
Instance Attribute Summary collapse
-
#ip_records ⇒ Object
readonly
Returns the value of attribute ip_records.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ VoiceV1IpRecordList
constructor
A new instance of VoiceV1IpRecordList.
Methods included from V1Pageable
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 = {}) (hash) @ip_records = (hash['ip_records'] || []).map { |h| VoiceV1IpRecord.from_hash(h) } end |
Instance Attribute Details
#ip_records ⇒ Object (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 |