Class: Rules::ValueChange

Inherits:
Rule
  • Object
show all
Defined in:
lib/question_chain/models/rules/value_change.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Rule

#ui_object_id

Class Method Details

.attributes_for_apiObject



17
18
19
# File 'lib/question_chain/models/rules/value_change.rb', line 17

def self.attributes_for_api
  %w(id fire_value _type ui_object_id affecting_ui_object_id negate_value)
end

Instance Method Details

#fire!(value = nil, ui_objects_hash = {}) ⇒ Object



12
13
14
15
# File 'lib/question_chain/models/rules/value_change.rb', line 12

def fire!(value = nil, ui_objects_hash = {})
  # does not matter what the value is in this instance
  # it is used to get opions for the drop_down_target
end