Sha256: 49e49433c05e2cd6e8be44483e9f5b8ccb2bf7ed2c9aed4292becc22c3b52dfc

Contents?: true

Size: 306 Bytes

Versions: 24

Compression:

Stored size: 306 Bytes

Contents

module PirateBay
  class ResultSet < Array
    attr_accessor :total_results, :search

    def initialize(initializer)
      self.search = initializer
      self.total_results = 1.0/0 #Infinity
    end

    def retrieved_results
      self.size
    end

    def more
      search.next_page
    end
  end
end

Version data entries

24 entries across 24 versions & 3 rubygems

Version Path
torrent_api-0.3.0 lib/pirate_bay/result_set.rb
piratebay_api-0.1.6 lib/piratebay_api/result_set.rb
piratebay_api-0.1.5 lib/piratebay_api/result_set.rb
piratebay_api-0.1.4 lib/piratebay_api/result_set.rb
piratebay_api-0.1.3 lib/piratebay_api/result_set.rb
piratebay_api-0.1.2 lib/piratebay_api/result_set.rb
piratebay_api-0.1.1 lib/piratebay_api/result_set.rb
piratebay_api-0.1.0 lib/piratebay_api/result_set.rb
piratebay_api-0.0.2 lib/piratebay_api/result_set.rb
piratebay_api-0.0.1 lib/piratebay_api/result_set.rb
torrent_api-0.2.8 lib/pirate_bay/result_set.rb
torrent_api-0.2.7 lib/pirate_bay/result_set.rb
torrent_api-0.2.6 lib/pirate_bay/result_set.rb
torrent_api-0.2.5 lib/pirate_bay/result_set.rb
torrent_api-0.2.3 lib/pirate_bay/result_set.rb
torrent_api-0.2.2 lib/pirate_bay/result_set.rb
torrent_api-0.2.1 lib/pirate_bay/result_set.rb
torrent_api-0.2.0 lib/pirate_bay/result_set.rb
torrent_api-0.1.2 lib/pirate_bay/result_set.rb
torrent_api-0.1.1 lib/pirate_bay/result_set.rb