Sha256: 1eb471c5435e632069e9cb80c5a55b2753f928f9a73efbb423281f7d82c885e4

Contents?: true

Size: 634 Bytes

Versions: 4

Compression:

Stored size: 634 Bytes

Contents

require 'neows/models/near_earth_object'
require 'neows/models/browse'
require 'neows/rest/utils'

module Neows
  module REST
    module Neo
      include Neows::REST::Utils

      # A single Near Earth Object by id
      #
      # @param neo_reference_id [String|Integer]
      # @return [Neows::Models::NearEarthObject]
      def neo(neo_reference_id)
        perform_get("/neo/#{neo_reference_id}", Neows::Models::NearEarthObject)
      end

      # Find other Near Earth Objects
      #
      # @return [Neows::Models::Browse]
      def browse
        perform_get('/neo/browse', Neows::Models::Browse)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
neows-1.1.0 lib/neows/rest/neo.rb
neows-1.0.0 lib/neows/rest/neo.rb
neows-0.0.2 lib/neows/rest/neo.rb
neows-0.0.1 lib/neows/rest/neo.rb