Class: OpenTok::RenderList
- Inherits:
-
Array
- Object
- Array
- OpenTok::RenderList
- Defined in:
- lib/opentok/render_list.rb
Overview
A class for accessing an array of Experience Composer Render objects.
Instance Attribute Summary collapse
-
#total ⇒ Object
readonly
The total number of Experience Composer renders.
Instance Method Summary collapse
-
#initialize(interface, json) ⇒ RenderList
constructor
A new instance of RenderList.
Constructor Details
#initialize(interface, json) ⇒ RenderList
Returns a new instance of RenderList.
9 10 11 12 |
# File 'lib/opentok/render_list.rb', line 9 def initialize(interface, json) @total = json["count"] super json["items"].map { |item| ::OpenTok::Render.new interface, item } end |
Instance Attribute Details
#total ⇒ Object (readonly)
The total number of Experience Composer renders.
7 8 9 |
# File 'lib/opentok/render_list.rb', line 7 def total @total end |