Class: Multiplayer::ExporterConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/multiplayer/exporters/http_exporter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(endpoint: nil, headers: {}, api_key: nil) ⇒ ExporterConfig

Returns a new instance of ExporterConfig.



9
10
11
12
13
# File 'lib/multiplayer/exporters/http_exporter.rb', line 9

def initialize(endpoint: nil, headers: {}, api_key: nil)
  @endpoint = endpoint
  @headers = headers
  @api_key = api_key
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



7
8
9
# File 'lib/multiplayer/exporters/http_exporter.rb', line 7

def api_key
  @api_key
end

#endpointObject

Returns the value of attribute endpoint.



7
8
9
# File 'lib/multiplayer/exporters/http_exporter.rb', line 7

def endpoint
  @endpoint
end

#headersObject

Returns the value of attribute headers.



7
8
9
# File 'lib/multiplayer/exporters/http_exporter.rb', line 7

def headers
  @headers
end