Class: ThrottleMachines::Configuration
- Inherits:
-
Object
- Object
- ThrottleMachines::Configuration
- Defined in:
- lib/throttle_machines.rb
Instance Attribute Summary collapse
-
#_storage_instance ⇒ Object
Returns the value of attribute _storage_instance.
-
#clock ⇒ Object
Returns the value of attribute clock.
-
#default_limit ⇒ Object
Returns the value of attribute default_limit.
-
#default_period ⇒ Object
Returns the value of attribute default_period.
-
#default_storage ⇒ Object
Returns the value of attribute default_storage.
-
#instrumentation_backend ⇒ Object
Returns the value of attribute instrumentation_backend.
-
#instrumentation_enabled ⇒ Object
Returns the value of attribute instrumentation_enabled.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
22 23 24 25 26 27 28 29 30 |
# File 'lib/throttle_machines.rb', line 22 def initialize @default_limit = 100 @default_period = 60 # 1 minute @default_storage = :memory @clock = nil @instrumentation_enabled = true @instrumentation_backend = nil @_storage_instance = nil end |
Instance Attribute Details
#_storage_instance ⇒ Object
Returns the value of attribute _storage_instance.
19 20 21 |
# File 'lib/throttle_machines.rb', line 19 def _storage_instance @_storage_instance end |
#clock ⇒ Object
Returns the value of attribute clock.
19 20 21 |
# File 'lib/throttle_machines.rb', line 19 def clock @clock end |
#default_limit ⇒ Object
Returns the value of attribute default_limit.
19 20 21 |
# File 'lib/throttle_machines.rb', line 19 def default_limit @default_limit end |
#default_period ⇒ Object
Returns the value of attribute default_period.
19 20 21 |
# File 'lib/throttle_machines.rb', line 19 def default_period @default_period end |
#default_storage ⇒ Object
Returns the value of attribute default_storage.
19 20 21 |
# File 'lib/throttle_machines.rb', line 19 def default_storage @default_storage end |
#instrumentation_backend ⇒ Object
Returns the value of attribute instrumentation_backend.
19 20 21 |
# File 'lib/throttle_machines.rb', line 19 def instrumentation_backend @instrumentation_backend end |
#instrumentation_enabled ⇒ Object
Returns the value of attribute instrumentation_enabled.
19 20 21 |
# File 'lib/throttle_machines.rb', line 19 def instrumentation_enabled @instrumentation_enabled end |