Module: SpacexApi::Client::Rockets
- Included in:
- SpacexApi::Client
- Defined in:
- lib/spacex_api/client/rockets.rb
Instance Method Summary collapse
Instance Method Details
#get_rocket(id) ⇒ Object
10 11 12 |
# File 'lib/spacex_api/client/rockets.rb', line 10 def get_rocket(id) get("rockets/#{id}") end |
#query_rockets(body = nil) ⇒ Object
14 15 16 |
# File 'lib/spacex_api/client/rockets.rb', line 14 def query_rockets(body = nil) post("rockets/query", body) end |
#rockets ⇒ Object
6 7 8 |
# File 'lib/spacex_api/client/rockets.rb', line 6 def rockets get("rockets") end |