Class: WifiWand::Platforms::Mac::Helper::Bundle::HelperSupportStatus

Inherits:
Struct
  • Object
show all
Defined in:
lib/wifi_wand/platforms/mac/helper/bundle.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#macos_versionObject

Returns the value of attribute macos_version

Returns:

  • (Object)

    the current value of macos_version



50
51
52
# File 'lib/wifi_wand/platforms/mac/helper/bundle.rb', line 50

def macos_version
  @macos_version
end

#parsed_versionObject

Returns the value of attribute parsed_version

Returns:

  • (Object)

    the current value of parsed_version



50
51
52
# File 'lib/wifi_wand/platforms/mac/helper/bundle.rb', line 50

def parsed_version
  @parsed_version
end

Instance Method Details

#applicable?Boolean

Returns:

  • (Boolean)


63
# File 'lib/wifi_wand/platforms/mac/helper/bundle.rb', line 63

def applicable? = !unsupported?

#known?Boolean

Returns:

  • (Boolean)


51
# File 'lib/wifi_wand/platforms/mac/helper/bundle.rb', line 51

def known? = !!parsed_version

#supported?Boolean

Returns:

  • (Boolean)


53
54
55
# File 'lib/wifi_wand/platforms/mac/helper/bundle.rb', line 53

def supported?
  known? && parsed_version >= MINIMUM_HELPER_VERSION
end

#unknown?Boolean

Returns:

  • (Boolean)


61
# File 'lib/wifi_wand/platforms/mac/helper/bundle.rb', line 61

def unknown? = !known?

#unsupported?Boolean

Returns:

  • (Boolean)


57
58
59
# File 'lib/wifi_wand/platforms/mac/helper/bundle.rb', line 57

def unsupported?
  known? && !supported?
end