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