Class: Multiplayer::ExporterConfig
- Inherits:
-
Object
- Object
- Multiplayer::ExporterConfig
- Defined in:
- lib/multiplayer/exporters/http_exporter.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#headers ⇒ Object
Returns the value of attribute headers.
Instance Method Summary collapse
-
#initialize(endpoint: nil, headers: {}, api_key: nil) ⇒ ExporterConfig
constructor
A new instance of ExporterConfig.
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_key ⇒ Object
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 |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
7 8 9 |
# File 'lib/multiplayer/exporters/http_exporter.rb', line 7 def endpoint @endpoint end |
#headers ⇒ Object
Returns the value of attribute headers.
7 8 9 |
# File 'lib/multiplayer/exporters/http_exporter.rb', line 7 def headers @headers end |