Class: Wifimap::Station
- Inherits:
-
Object
- Object
- Wifimap::Station
- Defined in:
- lib/wifimap/station.rb
Instance Attribute Summary collapse
-
#associations ⇒ Object
Returns the value of attribute associations.
-
#mac ⇒ Object
readonly
Returns the value of attribute mac.
-
#probes ⇒ Object
Returns the value of attribute probes.
Instance Method Summary collapse
-
#initialize(mac:) ⇒ Station
constructor
A new instance of Station.
-
#manufacturer ⇒ String
Get the device manufacturer based on the mac.
Constructor Details
#initialize(mac:) ⇒ Station
Returns a new instance of Station.
9 10 11 12 13 |
# File 'lib/wifimap/station.rb', line 9 def initialize(mac:) @mac = mac @associations = [] @probes = [] end |
Instance Attribute Details
#associations ⇒ Object
Returns the value of attribute associations.
6 7 8 |
# File 'lib/wifimap/station.rb', line 6 def associations @associations end |
#mac ⇒ Object (readonly)
Returns the value of attribute mac.
5 6 7 |
# File 'lib/wifimap/station.rb', line 5 def mac @mac end |
#probes ⇒ Object
Returns the value of attribute probes.
6 7 8 |
# File 'lib/wifimap/station.rb', line 6 def probes @probes end |
Instance Method Details
#manufacturer ⇒ String
Get the device manufacturer based on the mac.
18 19 20 |
# File 'lib/wifimap/station.rb', line 18 def manufacturer Mac.manufacturer(mac) end |