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-3.0.14 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-3.0.13 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-3.0.12 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-3.0.11 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-3.0.10 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-3.0.9 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-3.0.8 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-3.0.7 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-3.0.6 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-3.0.5 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-3.0.4 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-3.0.3 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-3.0.2 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-3.0.1 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-3.0.0 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-2.7.25 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-2.7.24 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-2.7.23 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-2.7.22 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb
eco-helpers-2.7.21 lib/eco/api/usecases/graphql/helpers/base/graphql_env.rb