Module: TraceViz::Traits::Identifiable
- Included in:
- TraceViz::TraceData::TracePoint::Base
- Defined in:
- lib/trace_viz/traits/identifiable.rb
Instance Attribute Summary collapse
-
#action_id ⇒ Object
readonly
Returns the value of attribute action_id.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
Instance Attribute Details
#action_id ⇒ Object (readonly)
Returns the value of attribute action_id.
8 9 10 |
# File 'lib/trace_viz/traits/identifiable.rb', line 8 def action_id @action_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'lib/trace_viz/traits/identifiable.rb', line 8 def id @id end |
Instance Method Details
#assign_ids ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/trace_viz/traits/identifiable.rb', line 10 def assign_ids @id = Utils::IDGenerator.generate_unique_id( memory_id: memory_id, action: action, path: path, line_number: line_number, ) @action_id = Utils::IDGenerator.generate_action_id( memory_id: memory_id, action: action, ) end |