Class: Raven::Breadcrumb
- Inherits:
-
Object
- Object
- Raven::Breadcrumb
- Defined in:
- lib/raven/breadcrumbs.rb
Instance Attribute Summary collapse
-
#category ⇒ Object
Returns the value of attribute category.
-
#data ⇒ Object
Returns the value of attribute data.
-
#level ⇒ Object
Returns the value of attribute level.
-
#message ⇒ Object
Returns the value of attribute message.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize ⇒ Breadcrumb
constructor
A new instance of Breadcrumb.
- #to_hash ⇒ Object
Constructor Details
#initialize ⇒ Breadcrumb
Returns a new instance of Breadcrumb.
5 6 7 8 9 10 11 12 |
# File 'lib/raven/breadcrumbs.rb', line 5 def initialize @category = nil @data = {} @level = nil @message = nil @timestamp = Time.now.to_i @type = nil end |
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category.
3 4 5 |
# File 'lib/raven/breadcrumbs.rb', line 3 def category @category end |
#data ⇒ Object
Returns the value of attribute data.
3 4 5 |
# File 'lib/raven/breadcrumbs.rb', line 3 def data @data end |
#level ⇒ Object
Returns the value of attribute level.
3 4 5 |
# File 'lib/raven/breadcrumbs.rb', line 3 def level @level end |
#message ⇒ Object
Returns the value of attribute message.
3 4 5 |
# File 'lib/raven/breadcrumbs.rb', line 3 def @message end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
3 4 5 |
# File 'lib/raven/breadcrumbs.rb', line 3 def @timestamp end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/raven/breadcrumbs.rb', line 3 def type @type end |
Instance Method Details
#to_hash ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/raven/breadcrumbs.rb', line 14 def to_hash { :category => @category, :data => @data, :level => @level, :message => @message, :timestamp => @timestamp, :type => @type } end |