Module: Meshtastic::Localonly
- Defined in:
- lib/meshtastic/localonly.rb
Class Method Summary collapse
- .authors ⇒ Object
- .decode_config(opts = {}) ⇒ Object
- .decode_module_config(opts = {}) ⇒ Object
- .help ⇒ Object
Class Method Details
.authors ⇒ Object
17 18 19 |
# File 'lib/meshtastic/localonly.rb', line 17 public_class_method def self. "AUTHOR(S):\n 0day Inc. <[email protected]>\n " end |
.decode_config(opts = {}) ⇒ Object
7 8 9 10 |
# File 'lib/meshtastic/localonly.rb', line 7 public_class_method def self.decode_config(opts = {}) bytes = opts[:bytes] Meshtastic::LocalConfig.decode(bytes) end |
.decode_module_config(opts = {}) ⇒ Object
12 13 14 15 |
# File 'lib/meshtastic/localonly.rb', line 12 public_class_method def self.decode_module_config(opts = {}) bytes = opts[:bytes] Meshtastic::LocalModuleConfig.decode(bytes) end |
.help ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/meshtastic/localonly.rb', line 21 public_class_method def self.help puts " USAGE: # Run the decode_config class method for this module. #{self}.decode_config( bytes: 'optional - value for bytes passed into decode_config' ) # Run the decode_module_config class method for this module. #{self}.decode_module_config( bytes: 'optional - value for bytes passed into decode_module_config' ) # Run the authors class method for this module. #{self}.authors " end |