Class: Wifimap::Station

Inherits:
Object
  • Object
show all
Defined in:
lib/wifimap/station.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mac:) ⇒ Station

Returns a new instance of Station.

Parameters:

  • mac (String)


9
10
11
12
13
# File 'lib/wifimap/station.rb', line 9

def initialize(mac:)
  @mac = mac
  @associations = []
  @probes = []
end

Instance Attribute Details

#associationsObject

Returns the value of attribute associations.



6
7
8
# File 'lib/wifimap/station.rb', line 6

def associations
  @associations
end

#macObject (readonly)

Returns the value of attribute mac.



5
6
7
# File 'lib/wifimap/station.rb', line 5

def mac
  @mac
end

#probesObject

Returns the value of attribute probes.



6
7
8
# File 'lib/wifimap/station.rb', line 6

def probes
  @probes
end

Instance Method Details

#manufacturerString

Get the device manufacturer based on the mac.

Returns:

  • (String)


18
19
20
# File 'lib/wifimap/station.rb', line 18

def manufacturer
  Mac.manufacturer(mac)
end