Class: Rubywpa::WiFi
- Inherits:
-
Object
- Object
- Rubywpa::WiFi
- Defined in:
- lib/rubywpa.rb
Instance Attribute Summary collapse
-
#ssid ⇒ Object
Returns the value of attribute ssid.
Instance Method Summary collapse
- #alice? ⇒ Boolean
- #fastweb? ⇒ Boolean
-
#initialize(options = {}) {|_self| ... } ⇒ WiFi
constructor
Create a new rubywpa instance and set the SSID.
- #password ⇒ Object
Constructor Details
#initialize(options = {}) {|_self| ... } ⇒ WiFi
17 18 19 20 21 22 23 |
# File 'lib/rubywpa.rb', line 17 def initialize( = {}, &block) @ssid = [:ssid] @mac = [:mac] @country_code = [:country_code] yield self if block_given? end |
Instance Attribute Details
#ssid ⇒ Object
Returns the value of attribute ssid.
7 8 9 |
# File 'lib/rubywpa.rb', line 7 def ssid @ssid end |
Instance Method Details
#alice? ⇒ Boolean
38 39 40 |
# File 'lib/rubywpa.rb', line 38 def alice? !!(ssid =~ /^Alice/i) end |
#fastweb? ⇒ Boolean
34 35 36 |
# File 'lib/rubywpa.rb', line 34 def fastweb? !!(ssid =~ /^FASTWEB/i) end |