lib/spacex/launches.rb in spacex-1.0.0 vs lib/spacex/launches.rb in spacex-1.0.1

- old
+ new

@@ -1,19 +1,27 @@ module SPACEX module Launches + def self.info(flight_number = nil) + SPACEX::BaseRequest.info("launches/#{flight_number}") + end + def self.latest SPACEX::BaseRequest.info('launches/latest') end def self.next SPACEX::BaseRequest.info('launches/next') end - def self.all - SPACEX::BaseRequest.info('launches') + def self.past + SPACEX::BaseRequest.info('launches/past') end - def self.info - all + def self.upcoming + SPACEX::BaseRequest.info('launches/upcoming') + end + + def self.all + info end end end