Class: Necropsy::Edge
- Inherits:
-
Data
- Object
- Data
- Necropsy::Edge
- Defined in:
- lib/necropsy/models.rb
Instance Attribute Summary collapse
-
#callee_id ⇒ Object
readonly
Returns the value of attribute callee_id.
-
#caller_id ⇒ Object
readonly
Returns the value of attribute caller_id.
-
#evidences ⇒ Object
readonly
Returns the value of attribute evidences.
Instance Method Summary collapse
Instance Attribute Details
#callee_id ⇒ Object (readonly)
Returns the value of attribute callee_id
507 508 509 |
# File 'lib/necropsy/models.rb', line 507 def callee_id @callee_id end |
#caller_id ⇒ Object (readonly)
Returns the value of attribute caller_id
507 508 509 |
# File 'lib/necropsy/models.rb', line 507 def caller_id @caller_id end |
#evidences ⇒ Object (readonly)
Returns the value of attribute evidences
507 508 509 |
# File 'lib/necropsy/models.rb', line 507 def evidences @evidences end |
Instance Method Details
#to_h ⇒ Object
508 509 510 511 512 513 514 515 |
# File 'lib/necropsy/models.rb', line 508 def to_h { 'caller_id' => caller_id, 'callee_id' => callee_id, 'evidence_ids' => evidences.filter_map(&:evidence_id).sort, 'evidences' => evidences.map(&:to_h) } end |