Module: Eco::API::UseCases::GraphQL::Helpers::Base::CaseEnv

Includes:
Language::AuxiliarLogger
Included in:
Eco::API::UseCases::GraphQL::Helpers::Base, Utils::Sftp
Defined in:
lib/eco/api/usecases/graphql/helpers/base/case_env.rb

Overview

Basic stuff you would need in any use case

Instance Attribute Summary collapse

Attributes included from Language::AuxiliarLogger

#logger

Instance Method Summary collapse

Methods included from Language::AuxiliarLogger

#log

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/eco/api/usecases/graphql/helpers/base/case_env.rb', line 5

def options
  @options
end

#sessionObject (readonly)

Returns the value of attribute session.



5
6
7
# File 'lib/eco/api/usecases/graphql/helpers/base/case_env.rb', line 5

def session
  @session
end

Instance Method Details

#configObject



7
8
9
# File 'lib/eco/api/usecases/graphql/helpers/base/case_env.rb', line 7

def config
  session.config
end

#simulate?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/eco/api/usecases/graphql/helpers/base/case_env.rb', line 11

def simulate?
  options.dig(:simulate)
end