Sha256: 2d790f95a5324d2d70cb96ed1ddf334eb4e52527698fa67a188aafd3fde5e121

Contents?: true

Size: 397 Bytes

Versions: 33

Compression:

Stored size: 397 Bytes

Contents

module Eco::API::UseCases::GraphQL::Helpers::Base
  # Basic stuff you would need in any use case
  module GraphQLEnv
    include CaseEnv

    private

    def graphql
      msg = "The credentials or basic graphql config are missing for the active environment"
      raise msg unless session.api?(version: :graphql)
      @graphql ||= session.api(version: :graphql)
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
eco-helpers-2.7.20 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-2.7.19 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-2.7.18 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-2.7.17 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-2.7.16 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-2.7.15 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-2.7.14 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-2.7.13 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-2.7.12 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-2.7.4 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-2.7.2 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-2.7.1 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-2.7.0 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb