Class: SpacexApi::Client
- Inherits:
-
Object
- Object
- SpacexApi::Client
- Includes:
- Capsules, CompanyInfo, Cores, Crews, Dragons, History, Landpads, Launches, Launchpads, Payloads, RoadsterInfo, Rockets, Ships, Starlink
- Defined in:
- lib/spacex_api/client.rb,
lib/spacex_api/client/cores.rb,
lib/spacex_api/client/crews.rb,
lib/spacex_api/client/ships.rb,
lib/spacex_api/client/dragons.rb,
lib/spacex_api/client/history.rb,
lib/spacex_api/client/rockets.rb,
lib/spacex_api/client/capsules.rb,
lib/spacex_api/client/landpads.rb,
lib/spacex_api/client/launches.rb,
lib/spacex_api/client/payloads.rb,
lib/spacex_api/client/starlink.rb,
lib/spacex_api/client/launchpads.rb,
lib/spacex_api/client/company_info.rb,
lib/spacex_api/client/roadster_info.rb
Defined Under Namespace
Modules: Capsules, CompanyInfo, Cores, Crews, Dragons, History, Landpads, Launches, Launchpads, Payloads, RoadsterInfo, Rockets, Ships, Starlink
Instance Method Summary collapse
Methods included from Starlink
#get_starlink, #query_starlinks, #starlinks
Methods included from Ships
#get_ship, #query_ships, #ships
Methods included from Rockets
#get_rocket, #query_rockets, #rockets
Methods included from RoadsterInfo
Methods included from Payloads
#get_payload, #payloads, #query_payloads
Methods included from Launchpads
#get_launchpad, #launchpads, #query_launchpads
Methods included from Launches
#get_launch, #latest_launch, #launches, #next_launch, #past_launches, #query_launches, #upcoming_launches
Methods included from Landpads
#get_landpad, #landpads, #query_landpads
Methods included from History
#get_historical_event, #historical_events, #query_historical_events
Methods included from Dragons
#dragons, #get_dragon, #query_dragons
Methods included from Crews
#crews, #get_crew, #query_crews
Methods included from Cores
#cores, #get_core, #query_cores
Methods included from CompanyInfo
Methods included from Capsules
#capsules, #get_capsule, #query_capsules
Instance Method Details
#get(path) ⇒ Object
35 36 37 |
# File 'lib/spacex_api/client.rb', line 35 def get(path) request(:get, path) end |
#post(path, body = nil) ⇒ Object
39 40 41 |
# File 'lib/spacex_api/client.rb', line 39 def post(path, body = nil) request(:post, path, body) end |