Module: Trailblazer::Activity::Introspect::Nodes

Defined in:
lib/trailblazer/activity/introspect.rb

Class Method Summary collapse

Class Method Details

.find_by_id(nodes, id) ⇒ Object

Returns Attributes data structure.

Returns:

  • Attributes data structure



21
22
23
24
# File 'lib/trailblazer/activity/introspect.rb', line 21

def self.find_by_id(nodes, id)
  tuple = nodes.find { |task, attrs| attrs.id == id } or return
  tuple[1]
end