Class: Checkoff::SelectorClasses::Common::CustomFieldGidValueFunctionEvaluator
- Inherits:
-
FunctionEvaluator
- Object
- FunctionEvaluator
- FunctionEvaluator
- Checkoff::SelectorClasses::Common::CustomFieldGidValueFunctionEvaluator
- Defined in:
- lib/checkoff/internal/selector_classes/common.rb
Overview
:custom_field_gid_value function
Instance Method Summary collapse
-
#evaluate(resource, custom_field_gid) ⇒ String?
@sg-ignore.
- #evaluate_arg?(_index) ⇒ Boolean
- #matches? ⇒ Boolean
Methods inherited from FunctionEvaluator
Constructor Details
This class inherits a constructor from Checkoff::SelectorClasses::Common::FunctionEvaluator
Instance Method Details
#evaluate(resource, custom_field_gid) ⇒ String?
@sg-ignore
129 130 131 132 |
# File 'lib/checkoff/internal/selector_classes/common.rb', line 129 def evaluate(resource, custom_field_gid) custom_field = @custom_fields.resource_custom_field_by_gid_or_raise(resource, custom_field_gid) custom_field['display_value'] end |
#evaluate_arg?(_index) ⇒ Boolean
121 122 123 |
# File 'lib/checkoff/internal/selector_classes/common.rb', line 121 def evaluate_arg?(_index) false end |
#matches? ⇒ Boolean
117 118 119 |
# File 'lib/checkoff/internal/selector_classes/common.rb', line 117 def matches? fn?(selector, :custom_field_gid_value) end |