Class: Checkoff::CustomFieldGidValueFunctionEvaluator

Inherits:
FunctionEvaluator show all
Defined in:
lib/checkoff/internal/task_selector_evaluator.rb

Overview

:custom_field_gid_value function

Instance Method Summary collapse

Methods inherited from FunctionEvaluator

#initialize

Constructor Details

This class inherits a constructor from Checkoff::FunctionEvaluator

Instance Method Details

#evaluate(task, custom_field_gid) ⇒ Object



172
173
174
175
# File 'lib/checkoff/internal/task_selector_evaluator.rb', line 172

def evaluate(task, custom_field_gid)
  custom_field = pull_custom_field_or_raise(task, custom_field_gid)
  custom_field['display_value']
end

#evaluate_arg?(_index) ⇒ Boolean

Returns:

  • (Boolean)


168
169
170
# File 'lib/checkoff/internal/task_selector_evaluator.rb', line 168

def evaluate_arg?(_index)
  false
end

#matches?Boolean

Returns:

  • (Boolean)


164
165
166
# File 'lib/checkoff/internal/task_selector_evaluator.rb', line 164

def matches?
  fn?(task_selector, :custom_field_gid_value)
end