Class: Ddr::Actions::FixityCheck::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/ddr/actions/fixity_check.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Result

Returns a new instance of Result.



25
26
27
28
29
30
# File 'lib/ddr/actions/fixity_check.rb', line 25

def initialize(args={})
  @pid = args[:pid]
  @success = args[:success] || true
  @results = args[:results] || {}
  @checked_at = args[:checked_at] || Time.now.utc
end

Instance Attribute Details

#checked_atObject

Returns the value of attribute checked_at.



23
24
25
# File 'lib/ddr/actions/fixity_check.rb', line 23

def checked_at
  @checked_at
end

#pidObject

Returns the value of attribute pid.



23
24
25
# File 'lib/ddr/actions/fixity_check.rb', line 23

def pid
  @pid
end

#resultsObject

Returns the value of attribute results.



23
24
25
# File 'lib/ddr/actions/fixity_check.rb', line 23

def results
  @results
end

#successObject

Returns the value of attribute success.



23
24
25
# File 'lib/ddr/actions/fixity_check.rb', line 23

def success
  @success
end