Class: Nis::Struct::AuditCollection

Inherits:
Object
  • Object
show all
Includes:
Util::Assignable
Defined in:
lib/nis/struct/audit_collection.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Util::Assignable

#[], #initialize, #to_hash, #to_json

Instance Attribute Details

#mostRecentArray Also known as: most_recent

Returns the current value of mostRecent.

Returns:

  • (Array)

    the current value of mostRecent



5
6
7
# File 'lib/nis/struct/audit_collection.rb', line 5

def mostRecent
  @mostRecent
end

#outstandingArray

Returns the current value of outstanding.

Returns:

  • (Array)

    the current value of outstanding



5
6
7
# File 'lib/nis/struct/audit_collection.rb', line 5

def outstanding
  @outstanding
end

Class Method Details

.build(outstanding:, most_recent:) ⇒ Object



12
13
14
15
16
17
# File 'lib/nis/struct/audit_collection.rb', line 12

def self.build(outstanding:, most_recent:)
  new(
    outstanding: outstanding.map { |audt| Nis::Struct::AuditInfo.build(audt) },
    mostRecent: most_recent.map { |audt| Nis::Struct::AuditInfo.build(audt) }
  )
end