Class: Presenters::OverridenAnsibleVariablePresenter

Inherits:
Object
  • Object
show all
Defined in:
app/graphql/presenters/overriden_ansible_variable_presenter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ansible_variable, override_resolver) ⇒ OverridenAnsibleVariablePresenter

Returns a new instance of OverridenAnsibleVariablePresenter.



10
11
12
13
# File 'app/graphql/presenters/overriden_ansible_variable_presenter.rb', line 10

def initialize(ansible_variable, override_resolver)
  @ansible_variable = ansible_variable
  @override_resolver = override_resolver
end

Instance Attribute Details

#ansible_variableObject (readonly)

Returns the value of attribute ansible_variable.



3
4
5
# File 'app/graphql/presenters/overriden_ansible_variable_presenter.rb', line 3

def ansible_variable
  @ansible_variable
end

Instance Method Details

#current_valueObject



15
16
17
# File 'app/graphql/presenters/overriden_ansible_variable_presenter.rb', line 15

def current_value
  @override_resolver.resolve @ansible_variable
end