Module: Tnql::Nodes::StageDetailNode
- Defined in:
- lib/tnql/nodes/staging.rb
Instance Method Summary collapse
Instance Method Details
#meta_data_item ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/tnql/nodes/staging.rb', line 4 def case text_value when 'unstaged' { 'staging.stage' => { Tnql::EQUALS => nil } } when 'valid stage' { 'staging.stage' => { Tnql::BEGINS => %w(1 2 3 4) } } else stage_values = stages.elements.map(&:text_value).map(&:upcase) { 'staging.stage' => { Tnql::BEGINS => stage_values } } end end |