Class: VoiceML::TranscriptionList
- Inherits:
-
Object
- Object
- VoiceML::TranscriptionList
- Includes:
- Pageable
- Defined in:
- lib/voiceml/models/transcriptions.rb
Overview
Paginated ‘GET /Calls/Sid/Transcriptions` response.
Constant Summary
Constants included from Pageable
Instance Attribute Summary collapse
-
#transcriptions ⇒ Object
readonly
Returns the value of attribute transcriptions.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ TranscriptionList
constructor
A new instance of TranscriptionList.
Methods included from Pageable
Constructor Details
#initialize(hash = {}) ⇒ TranscriptionList
Returns a new instance of TranscriptionList.
35 36 37 38 |
# File 'lib/voiceml/models/transcriptions.rb', line 35 def initialize(hash = {}) assign_page_fields(hash) @transcriptions = (hash['transcriptions'] || []).map { |t| CallTranscription.from_hash(t) } end |
Instance Attribute Details
#transcriptions ⇒ Object (readonly)
Returns the value of attribute transcriptions.
33 34 35 |
# File 'lib/voiceml/models/transcriptions.rb', line 33 def transcriptions @transcriptions end |
Class Method Details
.from_hash(hash) ⇒ Object
40 41 42 |
# File 'lib/voiceml/models/transcriptions.rb', line 40 def self.from_hash(hash) new(hash || {}) end |