class OpenTok::StreamList
A class for accessing a list of Stream
objects.
Attributes
total[R]
The total number streams.
Public Class Methods
new(json)
click to toggle source
@private
Calls superclass method
# File lib/opentok/stream_list.rb, line 12 def initialize(json) @total = json['count'] super json['items'].map { |item| Stream.new item } end