Class: Necropsy::CallSite

Inherits:
Data
  • Object
show all
Defined in:
lib/necropsy/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#caller_idObject (readonly)

Returns the value of attribute caller_id

Returns:

  • (Object)

    the current value of caller_id



90
91
92
# File 'lib/necropsy/models.rb', line 90

def caller_id
  @caller_id
end

#dynamicObject (readonly)

Returns the value of attribute dynamic

Returns:

  • (Object)

    the current value of dynamic



90
91
92
# File 'lib/necropsy/models.rb', line 90

def dynamic
  @dynamic
end

#fileObject (readonly)

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



90
91
92
# File 'lib/necropsy/models.rb', line 90

def file
  @file
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



90
91
92
# File 'lib/necropsy/models.rb', line 90

def line
  @line
end

#messageObject (readonly)

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



90
91
92
# File 'lib/necropsy/models.rb', line 90

def message
  @message
end

#metadataObject (readonly)

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



90
91
92
# File 'lib/necropsy/models.rb', line 90

def 
  @metadata
end

#receiver_kindObject (readonly)

Returns the value of attribute receiver_kind

Returns:

  • (Object)

    the current value of receiver_kind



90
91
92
# File 'lib/necropsy/models.rb', line 90

def receiver_kind
  @receiver_kind
end

#receiver_nameObject (readonly)

Returns the value of attribute receiver_name

Returns:

  • (Object)

    the current value of receiver_name



90
91
92
# File 'lib/necropsy/models.rb', line 90

def receiver_name
  @receiver_name
end

#testObject (readonly)

Returns the value of attribute test

Returns:

  • (Object)

    the current value of test



90
91
92
# File 'lib/necropsy/models.rb', line 90

def test
  @test
end

Instance Method Details

#to_hObject



101
102
103
104
105
106
107
108
109
110
111
112
113
# File 'lib/necropsy/models.rb', line 101

def to_h
  {
    'caller_id' => caller_id,
    'message' => message,
    'receiver_kind' => receiver_kind.to_s,
    'receiver_name' => receiver_name,
    'file' => file,
    'line' => line,
    'test' => test,
    'dynamic' => dynamic,
    'metadata' => 
  }
end