Class: Wifimap::AccessPoint
- Inherits:
-
Object
- Object
- Wifimap::AccessPoint
- Defined in:
- lib/wifimap/access_point.rb
Instance Attribute Summary collapse
-
#bssid ⇒ Object
readonly
Returns the value of attribute bssid.
-
#essid ⇒ Object
readonly
Returns the value of attribute essid.
-
#privacy ⇒ Object
readonly
Returns the value of attribute privacy.
Instance Method Summary collapse
-
#initialize(bssid:, privacy:, essid:) ⇒ AccessPoint
constructor
A new instance of AccessPoint.
-
#manufacturer ⇒ String
Get the device manufacturer based on the bssid.
Constructor Details
#initialize(bssid:, privacy:, essid:) ⇒ AccessPoint
Returns a new instance of AccessPoint.
7 8 9 10 11 |
# File 'lib/wifimap/access_point.rb', line 7 def initialize(bssid:, privacy:, essid:) @bssid = bssid @privacy = privacy @essid = essid end |
Instance Attribute Details
#bssid ⇒ Object (readonly)
Returns the value of attribute bssid.
5 6 7 |
# File 'lib/wifimap/access_point.rb', line 5 def bssid @bssid end |
#essid ⇒ Object (readonly)
Returns the value of attribute essid.
5 6 7 |
# File 'lib/wifimap/access_point.rb', line 5 def essid @essid end |
#privacy ⇒ Object (readonly)
Returns the value of attribute privacy.
5 6 7 |
# File 'lib/wifimap/access_point.rb', line 5 def privacy @privacy end |
Instance Method Details
#manufacturer ⇒ String
Get the device manufacturer based on the bssid.
16 17 18 |
# File 'lib/wifimap/access_point.rb', line 16 def manufacturer Mac.manufacturer(bssid) end |