Class: WifiWand::CommandLineInterface::OpenResource

Inherits:
Struct
  • Object
show all
Defined in:
lib/wifi-wand/command_line_interface.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



17
18
19
# File 'lib/wifi-wand/command_line_interface.rb', line 17

def code
  @code
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



17
18
19
# File 'lib/wifi-wand/command_line_interface.rb', line 17

def description
  @description
end

#resourceObject

Returns the value of attribute resource

Returns:

  • (Object)

    the current value of resource



17
18
19
# File 'lib/wifi-wand/command_line_interface.rb', line 17

def resource
  @resource
end

Instance Method Details

#help_stringObject

Ex: “‘ipw’ (What is My IP)”



20
21
22
# File 'lib/wifi-wand/command_line_interface.rb', line 20

def help_string
  "'#{code}' (#{description})"
end