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-3.0.1 lib/opentok/archive_list.rb
opentok-3.0.0 lib/opentok/archive_list.rb
opentok-2.5.0 lib/opentok/archive_list.rb
opentok-2.4.1 lib/opentok/archive_list.rb
opentok-2.4.0 lib/opentok/archive_list.rb
opentok-2.4.0.beta.1 lib/opentok/archive_list.rb
opentok-2.3.4 lib/opentok/archive_list.rb
opentok-2.3.3 lib/opentok/archive_list.rb
opentok-2.3.2 lib/opentok/archive_list.rb
opentok-2.3.0 lib/opentok/archive_list.rb
opentok-2.2.4 lib/opentok/archive_list.rb
opentok-2.2.3 lib/opentok/archive_list.rb
opentok-2.2.2 lib/opentok/archive_list.rb
opentok-2.2.1 lib/opentok/archive_list.rb
opentok-2.2.0 lib/opentok/archive_list.rb