Module: Mikrotik
- Defined in:
- lib/mikrotik.rb
Overview
TODO : Allow underscores to be used instead of dashes in command paths and properties - e.g. in dhcp-server and mac-address
Defined Under Namespace
Modules: Client, Connection, Errors, Protocol Classes: Command
Class Method Summary (collapse)
-
+ (Mikrotik::Client) connect(*args)
Shorthand for Mikrotik::Client.connect.
-
+ (Object) debug(message)
Prints message if debugging is enabled.
-
+ (Boolean) debugging
Whether debugging prints are enabled or not.
Class Method Details
+ (Mikrotik::Client) connect(*args)
Shorthand for Mikrotik::Client.connect
23 24 25 |
# File 'lib/mikrotik.rb', line 23 def self.connect(*args) Client.connect(*args) end |
+ (Object) debug(message)
Prints message if debugging is enabled
17 18 19 |
# File 'lib/mikrotik.rb', line 17 def self.debug() puts .join(' ') if debugging end |
+ (Boolean) debugging
Whether debugging prints are enabled or not
11 12 13 |
# File 'lib/mikrotik.rb', line 11 def self.debugging false end |