Class: SourceMonitor::Configuration::RealtimeSettings::SolidCableOptions
- Inherits:
-
Object
- Object
- SourceMonitor::Configuration::RealtimeSettings::SolidCableOptions
- Defined in:
- lib/source_monitor/configuration/realtime_settings.rb
Instance Attribute Summary collapse
-
#autotrim ⇒ Object
Returns the value of attribute autotrim.
-
#connects_to ⇒ Object
Returns the value of attribute connects_to.
-
#message_retention ⇒ Object
Returns the value of attribute message_retention.
-
#polling_interval ⇒ Object
Returns the value of attribute polling_interval.
-
#silence_polling ⇒ Object
Returns the value of attribute silence_polling.
-
#trim_batch_size ⇒ Object
Returns the value of attribute trim_batch_size.
-
#use_skip_locked ⇒ Object
Returns the value of attribute use_skip_locked.
Instance Method Summary collapse
- #assign(options) ⇒ Object
-
#initialize ⇒ SolidCableOptions
constructor
A new instance of SolidCableOptions.
- #reset! ⇒ Object
- #to_h ⇒ Object
Constructor Details
#initialize ⇒ SolidCableOptions
Returns a new instance of SolidCableOptions.
58 59 60 |
# File 'lib/source_monitor/configuration/realtime_settings.rb', line 58 def initialize reset! end |
Instance Attribute Details
#autotrim ⇒ Object
Returns the value of attribute autotrim.
50 51 52 |
# File 'lib/source_monitor/configuration/realtime_settings.rb', line 50 def autotrim @autotrim end |
#connects_to ⇒ Object
Returns the value of attribute connects_to.
50 51 52 |
# File 'lib/source_monitor/configuration/realtime_settings.rb', line 50 def connects_to @connects_to end |
#message_retention ⇒ Object
Returns the value of attribute message_retention.
50 51 52 |
# File 'lib/source_monitor/configuration/realtime_settings.rb', line 50 def @message_retention end |
#polling_interval ⇒ Object
Returns the value of attribute polling_interval.
50 51 52 |
# File 'lib/source_monitor/configuration/realtime_settings.rb', line 50 def polling_interval @polling_interval end |
#silence_polling ⇒ Object
Returns the value of attribute silence_polling.
50 51 52 |
# File 'lib/source_monitor/configuration/realtime_settings.rb', line 50 def silence_polling @silence_polling end |
#trim_batch_size ⇒ Object
Returns the value of attribute trim_batch_size.
50 51 52 |
# File 'lib/source_monitor/configuration/realtime_settings.rb', line 50 def trim_batch_size @trim_batch_size end |
#use_skip_locked ⇒ Object
Returns the value of attribute use_skip_locked.
50 51 52 |
# File 'lib/source_monitor/configuration/realtime_settings.rb', line 50 def use_skip_locked @use_skip_locked end |
Instance Method Details
#assign(options) ⇒ Object
62 63 64 65 66 67 68 69 |
# File 'lib/source_monitor/configuration/realtime_settings.rb', line 62 def assign() return unless .respond_to?(:each) .each do |key, value| setter = "#{key}=" public_send(setter, value) if respond_to?(setter) end end |
#reset! ⇒ Object
71 72 73 74 75 76 77 78 79 |
# File 'lib/source_monitor/configuration/realtime_settings.rb', line 71 def reset! @polling_interval = "0.1.seconds" @message_retention = "1.day" @autotrim = true @silence_polling = true @use_skip_locked = true @trim_batch_size = nil @connects_to = nil end |
#to_h ⇒ Object
81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/source_monitor/configuration/realtime_settings.rb', line 81 def to_h { polling_interval: polling_interval, message_retention: , autotrim: autotrim, silence_polling: silence_polling, use_skip_locked: use_skip_locked, trim_batch_size: trim_batch_size, connects_to: connects_to }.compact end |