Sha256: a4e6d79029bd80a57efb40b653b3f05904b22e33b2c685c6ff47f8b9946d2cee

Contents?: true

Size: 371 Bytes

Versions: 1

Compression:

Stored size: 371 Bytes

Contents

module RT
  class DVD
    def self.upcoming
      # Accepted parameters:
      # :page, :include_adult (true / false), :year
      options = { apikey: RT::API.api_key }

      results = RT::API.get("/v1.0/lists/dvds/upcoming.json", query: options)
      results = JSON.parse(results)['movies']
      results.collect! { |movie| Hashie::Mash.new(movie) }

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rottentom-0.2.0 lib/rottentom/dvd.rb