class Nexpose::UniqueIdentifier
Unique system identifiers on an asset.
Attributes
id[R]
Unique identifier of the user as determined by the asset (not Nexpose
).
source[R]
The source name for the uniuqe identifier.
Public Class Methods
new(source = nil, id = nil)
click to toggle source
# File lib/nexpose/asset.rb, line 276 def initialize(source = nil, id = nil) @id = id @source = source end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/nexpose/asset.rb, line 286 def <=>(other) c = source <=> other.source return c unless c.zero? id <=> other.id end
==(other)
click to toggle source
# File lib/nexpose/asset.rb, line 292 def ==(other) eql?(other) end
eql?(other)
click to toggle source
# File lib/nexpose/asset.rb, line 296 def eql?(other) source.eql?(other.source) && id.eql?(other.id) end
to_h()
click to toggle source
# File lib/nexpose/asset.rb, line 281 def to_h { source: source, id: id } end