class SpacexApi::Client

Public Instance Methods

get(path) click to toggle source
# File lib/spacex_api/client.rb, line 35
def get(path)
  request(:get, path)
end
post(path, body = nil) click to toggle source
# File lib/spacex_api/client.rb, line 39
def post(path, body = nil)
  request(:post, path, body)
end

Private Instance Methods

request(method, path, body = nil) click to toggle source
# File lib/spacex_api/client.rb, line 45
def request(method, path, body = nil)
  Request.call(method, path, body)
end