Sha256: edbac570d580bc88bf3cb384697e0635bcae8e0c12edeaa969f30e35e6ff9965
Contents?: true
Size: 322 Bytes
Versions: 17
Compression:
Stored size: 322 Bytes
Contents
require "opentok/stream" module OpenTok # A class for accessing a list of Stream objects. class StreamList < Array # The total number streams. attr_reader :total # @private def initialize(json) @total = json['count'] super json['items'].map { |item| Stream.new item } end end end
Version data entries
17 entries across 17 versions & 1 rubygems