Class: WifiWand::Commands::Metadata
- Inherits:
-
Object
- Object
- WifiWand::Commands::Metadata
- Defined in:
- lib/wifi_wand/commands/base.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#long_string ⇒ Object
readonly
Returns the value of attribute long_string.
-
#short_string ⇒ Object
readonly
Returns the value of attribute short_string.
-
#usage ⇒ Object
readonly
Returns the value of attribute usage.
Instance Method Summary collapse
- #aliases ⇒ Object
-
#initialize(short_string:, long_string:, description: nil, usage: nil) ⇒ Metadata
constructor
A new instance of Metadata.
Constructor Details
#initialize(short_string:, long_string:, description: nil, usage: nil) ⇒ Metadata
Returns a new instance of Metadata.
16 17 18 19 20 21 |
# File 'lib/wifi_wand/commands/base.rb', line 16 def initialize(short_string:, long_string:, description: nil, usage: nil) @short_string = short_string @long_string = long_string @description = description @usage = usage end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
14 15 16 |
# File 'lib/wifi_wand/commands/base.rb', line 14 def description @description end |
#long_string ⇒ Object (readonly)
Returns the value of attribute long_string.
14 15 16 |
# File 'lib/wifi_wand/commands/base.rb', line 14 def long_string @long_string end |
#short_string ⇒ Object (readonly)
Returns the value of attribute short_string.
14 15 16 |
# File 'lib/wifi_wand/commands/base.rb', line 14 def short_string @short_string end |
#usage ⇒ Object (readonly)
Returns the value of attribute usage.
14 15 16 |
# File 'lib/wifi_wand/commands/base.rb', line 14 def usage @usage end |
Instance Method Details
#aliases ⇒ Object
23 24 25 |
# File 'lib/wifi_wand/commands/base.rb', line 23 def aliases [short_string, long_string] end |