Class: Apscanner::AccessPoint
- Inherits:
-
Object
- Object
- Apscanner::AccessPoint
- Defined in:
- lib/apscanner/entities/access_point.rb
Instance Attribute Summary collapse
-
#clients ⇒ Object
readonly
Returns the value of attribute clients.
-
#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(options = {}) ⇒ AccessPoint
constructor
A new instance of AccessPoint.
- #to_h ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ AccessPoint
Returns a new instance of AccessPoint.
5 6 7 8 9 |
# File 'lib/apscanner/entities/access_point.rb', line 5 def initialize( = {}) @name = [:name] @clients = [:clients] @mac_address = [:mac_address] end |
Instance Attribute Details
#clients ⇒ Object (readonly)
Returns the value of attribute clients.
3 4 5 |
# File 'lib/apscanner/entities/access_point.rb', line 3 def clients @clients end |
#mac_address ⇒ Object (readonly)
Returns the value of attribute mac_address.
3 4 5 |
# File 'lib/apscanner/entities/access_point.rb', line 3 def mac_address @mac_address end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/apscanner/entities/access_point.rb', line 3 def name @name end |
Instance Method Details
#to_h ⇒ Object
11 12 13 14 15 |
# File 'lib/apscanner/entities/access_point.rb', line 11 def to_h instance_variables.map do |var| [var.to_s.delete('@').to_sym, instance_variable_get(var)] end.to_h end |