Class: Sentry::DummyTransport

Inherits:
Transport show all
Defined in:
lib/sentry/transport/dummy_transport.rb

Constant Summary

Constants inherited from Transport

Transport::PROTOCOL_VERSION, Transport::USER_AGENT

Instance Attribute Summary collapse

Attributes inherited from Transport

#configuration

Instance Method Summary collapse

Methods inherited from Transport

#encode, #generate_auth_header, #send_data

Constructor Details

#initializeDummyTransport

Returns a new instance of DummyTransport.



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

def initialize(*)
  super
  @events = []
end

Instance Attribute Details

#eventsObject

Returns the value of attribute events.



3
4
5
# File 'lib/sentry/transport/dummy_transport.rb', line 3

def events
  @events
end

Instance Method Details

#send_event(event) ⇒ Object



10
11
12
# File 'lib/sentry/transport/dummy_transport.rb', line 10

def send_event(event)
  @events << event
end