Class: OpenTok::RenderList

Inherits:
Array
  • Object
show all
Defined in:
lib/opentok/render_list.rb

Overview

A class for accessing an array of Experience Composer Render objects.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#totalObject (readonly)

The total number of Experience Composer renders.



7
8
9
# File 'lib/opentok/render_list.rb', line 7

def total
  @total
end