Class: Wifidiag::ApData
- Inherits:
-
Object
- Object
- Wifidiag::ApData
- Defined in:
- lib/wifidiag/ap_data.rb
Instance Attribute Summary collapse
-
#additional_data ⇒ Object
readonly
Returns the value of attribute additional_data.
-
#mac_address ⇒ Object
readonly
Returns the value of attribute mac_address.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:, mac_address: nil, **kwargs) ⇒ ApData
constructor
A new instance of ApData.
- #to_h ⇒ Object
Constructor Details
#initialize(name:, mac_address: nil, **kwargs) ⇒ ApData
Returns a new instance of ApData.
3 4 5 6 7 |
# File 'lib/wifidiag/ap_data.rb', line 3 def initialize(name: , mac_address: nil, **kwargs) @name = name @mac_address = mac_address @additional_data = kwargs end |
Instance Attribute Details
#additional_data ⇒ Object (readonly)
Returns the value of attribute additional_data.
10 11 12 |
# File 'lib/wifidiag/ap_data.rb', line 10 def additional_data @additional_data end |
#mac_address ⇒ Object (readonly)
Returns the value of attribute mac_address.
9 10 11 |
# File 'lib/wifidiag/ap_data.rb', line 9 def mac_address @mac_address end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/wifidiag/ap_data.rb', line 9 def name @name end |
Instance Method Details
#to_h ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/wifidiag/ap_data.rb', line 13 def to_h { name: name, mac_address: mac_address, additional_data: additional_data, } end |