Class: Presenters::OverridenAnsibleVariablePresenter
- Inherits:
-
Object
- Object
- Presenters::OverridenAnsibleVariablePresenter
- Defined in:
- app/graphql/presenters/overriden_ansible_variable_presenter.rb
Instance Attribute Summary collapse
-
#ansible_variable ⇒ Object
readonly
Returns the value of attribute ansible_variable.
Instance Method Summary collapse
- #current_value ⇒ Object
-
#initialize(ansible_variable, override_resolver) ⇒ OverridenAnsibleVariablePresenter
constructor
A new instance of OverridenAnsibleVariablePresenter.
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_variable ⇒ Object (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_value ⇒ Object
15 16 17 |
# File 'app/graphql/presenters/overriden_ansible_variable_presenter.rb', line 15 def current_value @override_resolver.resolve @ansible_variable end |