Class: Device

Inherits:
Object
  • Object
show all
Defined in:
lib/nexpose_sccm/device.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (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_addressObject (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_itemsObject

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_idObject (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