Module: SPACEX::Launches
- Defined in:
- lib/spacex/launches.rb
Class Method Summary collapse
- .all ⇒ Object
- .info(flight_number = nil) ⇒ Object
- .latest ⇒ Object
- .next ⇒ Object
- .past ⇒ Object
- .upcoming ⇒ Object
Class Method Details
.all ⇒ Object
23 24 25 |
# File 'lib/spacex/launches.rb', line 23 def self.all info end |
.info(flight_number = nil) ⇒ Object
3 4 5 |
# File 'lib/spacex/launches.rb', line 3 def self.info(flight_number = nil) SPACEX::BaseRequest.info("launches/#{flight_number}") end |
.latest ⇒ Object
7 8 9 |
# File 'lib/spacex/launches.rb', line 7 def self.latest SPACEX::BaseRequest.info('launches/latest') end |
.next ⇒ Object
11 12 13 |
# File 'lib/spacex/launches.rb', line 11 def self.next SPACEX::BaseRequest.info('launches/next') end |
.past ⇒ Object
15 16 17 |
# File 'lib/spacex/launches.rb', line 15 def self.past SPACEX::BaseRequest.info('launches/past') end |
.upcoming ⇒ Object
19 20 21 |
# File 'lib/spacex/launches.rb', line 19 def self.upcoming SPACEX::BaseRequest.info('launches/upcoming') end |