Sha256: 8a5af41e90ee904f3acd30906c81bcf3cef8ea23cbcd2352a1c6c66856897ee0

Contents?: true

Size: 351 Bytes

Versions: 35

Compression:

Stored size: 351 Bytes

Contents

require "opentok/archive"

module OpenTok
  # A class for accessing an array of Archive objects.
  class ArchiveList < Array

    # The total number archives.
    attr_reader :total

    # @private
    def initialize(interface, json)
      @total = json['count']
      super json['items'].map { |item| Archive.new interface, item }
    end

  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
opentok-4.10.0 lib/opentok/archive_list.rb
opentok-4.9.0 lib/opentok/archive_list.rb
opentok-4.8.1 lib/opentok/archive_list.rb
opentok-4.8.0 lib/opentok/archive_list.rb
opentok-4.7.1 lib/opentok/archive_list.rb
opentok-4.7.0 lib/opentok/archive_list.rb
opentok-4.6.0 lib/opentok/archive_list.rb
opentok-4.5.1 lib/opentok/archive_list.rb
opentok-4.5.0 lib/opentok/archive_list.rb
opentok-4.4.0 lib/opentok/archive_list.rb
opentok-4.3.0 lib/opentok/archive_list.rb
opentok-4.2.0 lib/opentok/archive_list.rb
opentok-4.1.2 lib/opentok/archive_list.rb
opentok-4.1.1 lib/opentok/archive_list.rb
opentok-4.1.0 lib/opentok/archive_list.rb
opentok-4.0.1 lib/opentok/archive_list.rb
opentok-4.0.0 lib/opentok/archive_list.rb
opentok-3.1.0 lib/opentok/archive_list.rb
opentok-3.0.3 lib/opentok/archive_list.rb
opentok-3.0.2 lib/opentok/archive_list.rb