Sha256: b5052c9431f9580209cdb7ab68ccc721f802d705d8dafdf9ec855cb3388abd85
Contents?: true
Size: 539 Bytes
Versions: 1
Compression:
Stored size: 539 Bytes
Contents
module Wifidiag class ClientData def initialize(ip_address: , mac_address: nil, ssid: nil, ap: nil, **kwargs) @ip_address = ip_address @mac_address = mac_address @ssid = ssid @additional_data = kwargs @ap = ap end attr_reader :ip_address, :mac_address, :ssid, :ap attr_reader :additional_data def to_h { ip_address: ip_address, mac_address: mac_address, ssid: ssid, ap: ap.to_h, additional_data: additional_data, } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wifidiag-0.1.0 | lib/wifidiag/client_data.rb |