Class: WpaCliRuby::WpaCli::ListNetworkResult
- Inherits:
-
Struct
- Object
- Struct
- WpaCliRuby::WpaCli::ListNetworkResult
- Defined in:
- lib/wpa_cli_ruby/wpa_cli.rb
Instance Attribute Summary collapse
-
#bssid ⇒ Object
Returns the value of attribute bssid.
-
#flags ⇒ Object
Returns the value of attribute flags.
-
#network_id ⇒ Object
Returns the value of attribute network_id.
-
#ssid ⇒ Object
Returns the value of attribute ssid.
Class Method Summary collapse
-
.from_string(string) ⇒ Object
Instantiate from a tab delimited string (as given by ‘wpa_cli list_networks`).
Instance Method Summary collapse
-
#initialize(*args) ⇒ ListNetworkResult
constructor
A new instance of ListNetworkResult.
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
#bssid ⇒ Object
Returns the value of attribute bssid
24 25 26 |
# File 'lib/wpa_cli_ruby/wpa_cli.rb', line 24 def bssid @bssid end |
#flags ⇒ Object
Returns the value of attribute flags
24 25 26 |
# File 'lib/wpa_cli_ruby/wpa_cli.rb', line 24 def flags @flags end |
#network_id ⇒ Object
Returns the value of attribute network_id
24 25 26 |
# File 'lib/wpa_cli_ruby/wpa_cli.rb', line 24 def network_id @network_id end |
#ssid ⇒ Object
Returns the value of attribute 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`)
32 33 34 |
# File 'lib/wpa_cli_ruby/wpa_cli.rb', line 32 def self.from_string(string) new(*string.split("\t")) end |