Class: Device
- Inherits:
-
Object
- Object
- Device
- Defined in:
- lib/nexpose_sccm/device.rb
Instance Attribute Summary collapse
-
#host_name ⇒ Object
readonly
Returns the value of attribute host_name.
-
#ip_address ⇒ Object
readonly
Returns the value of attribute ip_address.
-
#remediation_items ⇒ Object
Returns the value of attribute remediation_items.
-
#resource_id ⇒ Object
readonly
Returns the value of attribute resource_id.
Instance Method Summary collapse
-
#initialize(ip_address, host_name, resource_id) ⇒ Device
constructor
A new instance of Device.
Constructor Details
#initialize(ip_address, host_name, resource_id) ⇒ Device
Returns a new instance of Device.
5 6 7 8 9 10 |
# File 'lib/nexpose_sccm/device.rb', line 5 def initialize(ip_address, host_name, resource_id) @ip_address = ip_address @host_name = host_name @resource_id = resource_id @remediation_items = Set.new end |
Instance Attribute Details
#host_name ⇒ Object (readonly)
Returns the value of attribute host_name.
3 4 5 |
# File 'lib/nexpose_sccm/device.rb', line 3 def host_name @host_name end |
#ip_address ⇒ Object (readonly)
Returns the value of attribute ip_address.
3 4 5 |
# File 'lib/nexpose_sccm/device.rb', line 3 def ip_address @ip_address end |
#remediation_items ⇒ Object
Returns the value of attribute remediation_items.
2 3 4 |
# File 'lib/nexpose_sccm/device.rb', line 2 def remediation_items @remediation_items end |
#resource_id ⇒ Object (readonly)
Returns the value of attribute resource_id.
3 4 5 |
# File 'lib/nexpose_sccm/device.rb', line 3 def resource_id @resource_id end |