Class: Sentry::DummyTransport
- Defined in:
- lib/sentry/transport/dummy_transport.rb
Constant Summary
Constants inherited from Transport
Transport::CLIENT_REPORT_INTERVAL, Transport::CLIENT_REPORT_REASONS, Transport::PROTOCOL_VERSION, Transport::USER_AGENT
Instance Attribute Summary collapse
-
#envelopes ⇒ Object
Returns the value of attribute envelopes.
-
#events ⇒ Object
Returns the value of attribute events.
Attributes inherited from Transport
#discarded_events, #last_client_report_sent, #logger, #rate_limits
Instance Method Summary collapse
-
#initialize ⇒ DummyTransport
constructor
A new instance of DummyTransport.
- #send_envelope(envelope) ⇒ Object
- #send_event(event) ⇒ Object
Methods inherited from Transport
#any_rate_limited?, #envelope_from_event, #flush, #is_rate_limited?, #record_lost_event, #send_data, #serialize_envelope
Constructor Details
#initialize ⇒ DummyTransport
Returns a new instance of DummyTransport.
7 8 9 10 11 |
# File 'lib/sentry/transport/dummy_transport.rb', line 7 def initialize(*) super @events = [] @envelopes = [] end |
Instance Attribute Details
#envelopes ⇒ Object
Returns the value of attribute envelopes.
5 6 7 |
# File 'lib/sentry/transport/dummy_transport.rb', line 5 def envelopes @envelopes end |
#events ⇒ Object
Returns the value of attribute events.
5 6 7 |
# File 'lib/sentry/transport/dummy_transport.rb', line 5 def events @events end |
Instance Method Details
#send_envelope(envelope) ⇒ Object
17 18 19 |
# File 'lib/sentry/transport/dummy_transport.rb', line 17 def send_envelope(envelope) @envelopes << envelope end |
#send_event(event) ⇒ Object
13 14 15 |
# File 'lib/sentry/transport/dummy_transport.rb', line 13 def send_event(event) @events << event end |