Class: MacWifi::CommandLineInterface::OpenResource

Inherits:
Struct
  • Object
show all
Defined in:
lib/mac-wifi/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



13
14
15
# File 'lib/mac-wifi/command_line_interface.rb', line 13

def code
  @code
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



13
14
15
# File 'lib/mac-wifi/command_line_interface.rb', line 13

def description
  @description
end

#resourceObject

Returns the value of attribute resource

Returns:

  • (Object)

    the current value of resource



13
14
15
# File 'lib/mac-wifi/command_line_interface.rb', line 13

def resource
  @resource
end

Instance Method Details

#help_stringObject

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



16
17
18
# File 'lib/mac-wifi/command_line_interface.rb', line 16

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