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