class KiwiApi::Client

Public Class Methods

new() click to toggle source
# File lib/kiwi_api/client.rb, line 5
def initialize
  @http_service = HttpService.new
end

Public Instance Methods

http_service() click to toggle source
# File lib/kiwi_api/client.rb, line 9
def http_service
  @http_service
end
location(params = {}) click to toggle source
# File lib/kiwi_api/client.rb, line 18
def location(params = {})
  params.merge!(location_types: "airport")
  response = http_service.request_get("/locations/query", params)
  KiwiApi::Response.new(response)
end