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