Class: Treblle::Dispatcher

Inherits:
Object
  • Object
show all
Includes:
Logging
Defined in:
lib/treblle/dispatcher.rb

Constant Summary collapse

TREBLLE_URIS =
%w[
  https://rocknrolla.treblle.com
  https://punisher.treblle.com
  https://sicario.treblle.com
].freeze

Instance Method Summary collapse

Methods included from Logging

#log_error, #log_success, #logger

Constructor Details

#initialize(payload:, configuration: Treblle.configuration) ⇒ Dispatcher

Returns a new instance of Dispatcher.



18
19
20
21
22
# File 'lib/treblle/dispatcher.rb', line 18

def initialize(payload:, configuration: Treblle.configuration)
  @payload = payload
  @uri = get_uri
  @configuration = configuration
end

Instance Method Details

#callObject



24
25
26
# File 'lib/treblle/dispatcher.rb', line 24

def call
  send_payload_to_treblle
end