Module: AIPP::NewayAPI

Defined in:
lib/aipp/regions/LS/helpers/base.rb

Defined Under Namespace

Classes: Notam

Constant Summary collapse

HttpAdapter =
GraphQL::Client::HTTP.new(ENV['NEWAY_API_URL']) do
  def headers(context)
    { "Authorization": "Bearer #{ENV['NEWAY_API_AUTHORIZATION']}" }
  end
end
Schema =
GraphQL::Client.load_schema(HttpAdapter)
Client =
GraphQL::Client.new(schema: Schema, execute: HttpAdapter)