Class: Necropsy::CallSite
- Inherits:
-
Data
- Object
- Data
- Necropsy::CallSite
- Defined in:
- lib/necropsy/models.rb
Instance Attribute Summary collapse
-
#call_site_id ⇒ Object
readonly
Returns the value of attribute call_site_id.
-
#caller_id ⇒ Object
(also: #caller_definition_id)
readonly
Returns the value of attribute caller_id.
-
#dynamic ⇒ Object
readonly
Returns the value of attribute dynamic.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#receiver_kind ⇒ Object
readonly
Returns the value of attribute receiver_kind.
-
#receiver_name ⇒ Object
readonly
Returns the value of attribute receiver_name.
-
#test ⇒ Object
readonly
Returns the value of attribute test.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(caller_id:, message:, receiver_kind:, receiver_name:, file:, line:, test:, dynamic:, metadata:, call_site_id: nil) ⇒ CallSite
constructor
A new instance of CallSite.
- #to_h ⇒ Object
Constructor Details
#initialize(caller_id:, message:, receiver_kind:, receiver_name:, file:, line:, test:, dynamic:, metadata:, call_site_id: nil) ⇒ CallSite
Returns a new instance of CallSite.
682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 |
# File 'lib/necropsy/models.rb', line 682 def initialize(caller_id:, message:, receiver_kind:, receiver_name:, file:, line:, test:, dynamic:, metadata:, call_site_id: nil) call_site_id ||= CallSiteIdentity.legacy_id( caller_definition_id: caller_id, message: , receiver_kind: receiver_kind, receiver_name: receiver_name, file: file, line: line, test: test, dynamic: dynamic, metadata: ) super end |
Instance Attribute Details
#call_site_id ⇒ Object (readonly)
Returns the value of attribute call_site_id
647 648 649 |
# File 'lib/necropsy/models.rb', line 647 def call_site_id @call_site_id end |
#caller_id ⇒ Object (readonly) Also known as: caller_definition_id
Returns the value of attribute caller_id
647 648 649 |
# File 'lib/necropsy/models.rb', line 647 def caller_id @caller_id end |
#dynamic ⇒ Object (readonly)
Returns the value of attribute dynamic
647 648 649 |
# File 'lib/necropsy/models.rb', line 647 def dynamic @dynamic end |
#file ⇒ Object (readonly)
Returns the value of attribute file
647 648 649 |
# File 'lib/necropsy/models.rb', line 647 def file @file end |
#line ⇒ Object (readonly)
Returns the value of attribute line
647 648 649 |
# File 'lib/necropsy/models.rb', line 647 def line @line end |
#message ⇒ Object (readonly)
Returns the value of attribute message
647 648 649 |
# File 'lib/necropsy/models.rb', line 647 def @message end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
647 648 649 |
# File 'lib/necropsy/models.rb', line 647 def @metadata end |
#receiver_kind ⇒ Object (readonly)
Returns the value of attribute receiver_kind
647 648 649 |
# File 'lib/necropsy/models.rb', line 647 def receiver_kind @receiver_kind end |
#receiver_name ⇒ Object (readonly)
Returns the value of attribute receiver_name
647 648 649 |
# File 'lib/necropsy/models.rb', line 647 def receiver_name @receiver_name end |
#test ⇒ Object (readonly)
Returns the value of attribute test
647 648 649 |
# File 'lib/necropsy/models.rb', line 647 def test @test end |
Class Method Details
.data_new ⇒ Object
660 |
# File 'lib/necropsy/models.rb', line 660 alias_method :data_new, :new |
.new(*values, **attributes) ⇒ Object Also known as: []
662 663 664 |
# File 'lib/necropsy/models.rb', line 662 def new(*values, **attributes) compatible_new(*values, **attributes) end |
Instance Method Details
#to_h ⇒ Object
700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 |
# File 'lib/necropsy/models.rb', line 700 def to_h { 'call_site_id' => call_site_id, 'caller_id' => caller_id, 'caller_definition_id' => caller_definition_id, 'message' => , 'receiver_kind' => receiver_kind.to_s, 'receiver_name' => receiver_name, 'file' => file, 'line' => line, 'test' => test, 'dynamic' => dynamic, 'metadata' => } end |