Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ratlas is a lightweight ruby library for consuming the lovely Atlas Api
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib Fixed a few bugs and updated Readme
spec Fixed a few bugs and updated Readme
.gitignore
Gemfile Installed Jewler and updated Gemspec
Gemfile.lock
LICENSE.txt
README.rdoc Updated readme
Rakefile Added production requirements
VERSION
ratlas.gemspec

README.rdoc

ratlas

Ratlas is a lightweight ruby library for consuming the lovely Atlas Api (docs.atlasapi.org/)

Installation

gem install ratlas

API

Please see the atlas api documentation for a list of methods and their arguments.

Example

Ratlas::Discover.find(:all).where(:genre=> "drama", :media_type => 'video').each do |n|

puts n.title

end

#http://atlasapi.org/3.0/schedule.json?from=now&to=now.plus.1h&channel=bbcone&publisher=bbc.co.uk
Ratlas::Schedule.find(:all).where(:from => Time.now.to_i, :to=> Time.now.to_i + 3600).and(:channel => 'bbcone', :publisher => 'bbc.co.uk').each do |n|

puts “#{n.channel_title} has the following programs in the next hour:” n.items {|program| puts “-#{program.first.title}”}

end

Contributing to ratlas

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet

  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it

  • Fork the project

  • Start a feature/bugfix branch

  • Commit and push until you are happy with your contribution

  • Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.

  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

Copyright

Copyright © 2011 Daniel Cooper. See LICENSE.txt for further details.

Something went wrong with that request. Please try again.