Class: Sentry::DummyTransport

Inherits:
Transport show all
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

Attributes inherited from Transport

#discarded_events, #last_client_report_sent, #logger, #rate_limits

Instance Method Summary collapse

Methods inherited from Transport

#any_rate_limited?, #envelope_from_event, #flush, #is_rate_limited?, #record_lost_event, #send_data, #serialize_envelope

Constructor Details

#initializeDummyTransport

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

#envelopesObject

Returns the value of attribute envelopes.



5
6
7
# File 'lib/sentry/transport/dummy_transport.rb', line 5

def envelopes
  @envelopes
end

#eventsObject

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