class Nexpose::GroupAccount

Group accounts on an asset.

Attributes

attributes[R]

Group attributes.

id[R]

Unique identifier of the group as determined by the asset (not Nexpose).

name[R]

Group account name.

Public Class Methods

new(name = nil, id = 0, attributes = []) click to toggle source
# File lib/nexpose/asset.rb, line 193
def initialize(name = nil, id = 0, attributes = [])
  @name = name
  @id = id
  @attributes = attributes
end

Public Instance Methods

<=>(other) click to toggle source
# File lib/nexpose/asset.rb, line 205
def <=>(other)
  c = name <=> other.name
  return c unless c.zero?
  c = id <=> other.id
  return c unless c.zero?
  attributes <=> other.attributes
end
==(other) click to toggle source
# File lib/nexpose/asset.rb, line 213
def ==(other)
  eql?(other)
end
eql?(other) click to toggle source
# File lib/nexpose/asset.rb, line 217
def eql?(other)
  name.eql?(other.name) && id.eql?(other.id) && attributes.eql?(other.attributes)
end
to_h() click to toggle source
# File lib/nexpose/asset.rb, line 199
def to_h
  { name: name,
    id: id,
    attributes: Attributes.to_hash(attributes) }
end