Class: OpenWire::Configuration
- Inherits:
-
Object
- Object
- OpenWire::Configuration
- Defined in:
- lib/open_wire/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
-
#read_timeout ⇒ Object
Returns the value of attribute read_timeout.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 |
# File 'lib/open_wire/configuration.rb', line 7 def initialize @base_url = ENV.fetch("OPEN_WIRE_URL", "https://openwire.rails-agent.com") @api_key = ENV["OPEN_WIRE_API_KEY"] @open_timeout = 3 @read_timeout = 15 end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
5 6 7 |
# File 'lib/open_wire/configuration.rb', line 5 def api_key @api_key end |
#base_url ⇒ Object
Returns the value of attribute base_url.
5 6 7 |
# File 'lib/open_wire/configuration.rb', line 5 def base_url @base_url end |
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
5 6 7 |
# File 'lib/open_wire/configuration.rb', line 5 def open_timeout @open_timeout end |
#read_timeout ⇒ Object
Returns the value of attribute read_timeout.
5 6 7 |
# File 'lib/open_wire/configuration.rb', line 5 def read_timeout @read_timeout end |