Class: RSMP::Site::Options
- Defined in:
- lib/rsmp/options/site_options.rb
Overview
Configuration options for sites.
Direct Known Subclasses
Constant Summary
Constants inherited from Options
Instance Attribute Summary
Attributes inherited from Options
Instance Method Summary collapse
Methods inherited from Options
#[], #dig, #initialize, load_file, #schema_path, #to_h, #validate!
Constructor Details
This class inherits a constructor from RSMP::Options
Instance Method Details
#defaults ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/rsmp/options/site_options.rb', line 5 def defaults { 'site_id' => 'RN+SI0001', 'supervisors' => [ { 'ip' => '127.0.0.1', 'port' => 12_111 } ], 'sxl' => 'tlc', 'sxl_version' => RSMP::Schema.latest_version(:tlc), 'intervals' => { 'timer' => 0.1, 'watchdog' => 1, 'reconnect' => 0.1 }, 'timeouts' => { 'watchdog' => 2, 'acknowledgement' => 2 }, 'send_after_connect' => true, 'components' => { 'main' => { 'C1' => {} } } } end |
#schema_file ⇒ Object
31 32 33 |
# File 'lib/rsmp/options/site_options.rb', line 31 def schema_file 'site.json' end |