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
42 43 44 |
# File 'lib/necropsy/models.rb', line 42 def callee_id @callee_id end |
#caller_id ⇒ Object (readonly)
Returns the value of attribute caller_id
42 43 44 |
# File 'lib/necropsy/models.rb', line 42 def caller_id @caller_id end |
#evidences ⇒ Object (readonly)
Returns the value of attribute evidences
42 43 44 |
# File 'lib/necropsy/models.rb', line 42 def evidences @evidences end |
Instance Method Details
#to_h ⇒ Object
43 44 45 46 47 48 49 |
# File 'lib/necropsy/models.rb', line 43 def to_h { 'caller_id' => caller_id, 'callee_id' => callee_id, 'evidences' => evidences.map(&:to_h) } end |