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
search(params = {})
click to toggle source
# File lib/kiwi_api/client.rb, line 13 def search(params = {}) response = http_service.request_get("/v2/search", params) KiwiApi::Response.new(response) end