Class: FragmentClient::Configuration
- Inherits:
-
Object
- Object
- FragmentClient::Configuration
- Extended by:
- T::Sig
- Defined in:
- lib/fragment_client.rb
Overview
Process-wide settings, set with configure.
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#token_expiry_buffer ⇒ Object
Returns the value of attribute token_expiry_buffer.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
363 364 365 366 |
# File 'lib/fragment_client.rb', line 363 def initialize @token_expiry_buffer = T.let(120, Integer) @logger = T.let(Logger.new($stdout), Logger) end |
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute logger.
360 361 362 |
# File 'lib/fragment_client.rb', line 360 def logger @logger end |
#token_expiry_buffer ⇒ Object
Returns the value of attribute token_expiry_buffer.
357 358 359 |
# File 'lib/fragment_client.rb', line 357 def token_expiry_buffer @token_expiry_buffer end |