Class: WpaCliRuby::WpaCli::ListNetworkResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/wpa_cli_ruby/wpa_cli.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ ListNetworkResult

Returns a new instance of ListNetworkResult.



25
26
27
# File 'lib/wpa_cli_ruby/wpa_cli.rb', line 25

def initialize(*args)
  super(*args)
end

Instance Attribute Details

#bssidObject

Returns the value of attribute bssid

Returns:

  • (Object)

    the current value of bssid



24
25
26
# File 'lib/wpa_cli_ruby/wpa_cli.rb', line 24

def bssid
  @bssid
end

#flagsObject

Returns the value of attribute flags

Returns:

  • (Object)

    the current value of flags



24
25
26
# File 'lib/wpa_cli_ruby/wpa_cli.rb', line 24

def flags
  @flags
end

#network_idObject

Returns the value of attribute network_id

Returns:

  • (Object)

    the current value of network_id



24
25
26
# File 'lib/wpa_cli_ruby/wpa_cli.rb', line 24

def network_id
  @network_id
end

#ssidObject

Returns the value of attribute ssid

Returns:

  • (Object)

    the current value of ssid



24
25
26
# File 'lib/wpa_cli_ruby/wpa_cli.rb', line 24

def ssid
  @ssid
end

Class Method Details

.from_string(string) ⇒ Object

Instantiate from a tab delimited string (as given by ‘wpa_cli list_networks`)

Parameters:

  • tab (String)

    delimited string in the form network_idtssidtbssidtflags



32
33
34
# File 'lib/wpa_cli_ruby/wpa_cli.rb', line 32

def self.from_string(string)
  new(*string.split("\t"))
end