Class: Wifimap::AccessPoint

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bssidObject (readonly)

Returns the value of attribute bssid.



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

def bssid
  @bssid
end

#essidObject (readonly)

Returns the value of attribute essid.



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

def essid
  @essid
end

#privacyObject (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

#manufacturerString

Get the device manufacturer based on the bssid.

Returns:

  • (String)


16
17
18
# File 'lib/wifimap/access_point.rb', line 16

def manufacturer
  Mac.manufacturer(bssid)
end