Class: Sentry::Envelope Private
- Inherits:
-
Object
- Object
- Sentry::Envelope
- Defined in:
- lib/sentry/envelope.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Classes: Item
Instance Attribute Summary collapse
- #headers ⇒ Object private
- #items ⇒ Object private
Instance Method Summary collapse
- #add_item(headers, payload) ⇒ Object private
- #event_id ⇒ Object private
-
#initialize(headers = {}) ⇒ Envelope
constructor
private
A new instance of Envelope.
- #item_types ⇒ Object private
Constructor Details
#initialize(headers = {}) ⇒ Envelope
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Envelope.
8 9 10 11 |
# File 'lib/sentry/envelope.rb', line 8 def initialize(headers = {}) @headers = headers @items = [] end |
Instance Attribute Details
#headers ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
6 7 8 |
# File 'lib/sentry/envelope.rb', line 6 def headers @headers end |
#items ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
6 7 8 |
# File 'lib/sentry/envelope.rb', line 6 def items @items end |
Instance Method Details
#add_item(headers, payload) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 |
# File 'lib/sentry/envelope.rb', line 13 def add_item(headers, payload) @items << Item.new(headers, payload) end |
#event_id ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
21 22 23 |
# File 'lib/sentry/envelope.rb', line 21 def event_id @headers[:event_id] end |
#item_types ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 |
# File 'lib/sentry/envelope.rb', line 17 def item_types @items.map(&:type) end |