Module: SpacexApi::Client::Crews

Included in:
SpacexApi::Client
Defined in:
lib/spacex_api/client/crews.rb

Instance Method Summary collapse

Instance Method Details

#crewsObject



6
7
8
# File 'lib/spacex_api/client/crews.rb', line 6

def crews
  get("crew")
end

#get_crew(id) ⇒ Object



10
11
12
# File 'lib/spacex_api/client/crews.rb', line 10

def get_crew(id)
  get("crew/#{id}")
end

#query_crews(body = nil) ⇒ Object



14
15
16
# File 'lib/spacex_api/client/crews.rb', line 14

def query_crews(body = nil)
  post("crew/query", body)
end