Class: WifiWand::Commands::RandomMac
- Defined in:
- lib/wifi_wand/commands/random_mac.rb
Constant Summary
Constants inherited from Base
Base::DEFAULT_INVOCATION_OPTIONS
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#aliases, allow_invocation_options, allowed_invocation_options, #bind, binding_sources, binds, command_metadata, declared_metadata, #help_text, #initialize, #validate_options
Constructor Details
This class inherits a constructor from WifiWand::Commands::Base
Instance Method Details
#call(*args) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/wifi_wand/commands/random_mac.rb', line 18 def call(*args) validate_max_arguments!(args, 0) mac_address = model.random_mac_address output_support.handle_output(mac_address, -> { mac_address }) end |