Neows Ruby Gem

A Ruby interface to the NeoWs API

Installation

  $ gem install neows

Configuration

You can pass configuration options as a block to Neows::REST::Client.new.

client = Neows::REST::Client.new do |config|
  config.base_url = "YOUR_CONSUMER_KEY"
end

Usage Examples

With a configured client you can:

View a Feed (grouped by date)

client.feed('2015-07-01', '2015-07-04')

Browse Near Earth Objects

client.browse

Easily navigate between pages in Feed and Browse

feed = client.feed('2015-07-01', '2015-07-04')
feed.next

browse = client.browse
browse.next

Fetch a Near Earth Object (by ID)

client.neo('3724245')

See stats relating to the NeoWs database

client.stats