Class: Ddr::Actions::FixityCheck::Result
- Inherits:
-
Object
- Object
- Ddr::Actions::FixityCheck::Result
- Defined in:
- lib/ddr/actions/fixity_check.rb
Instance Attribute Summary collapse
-
#checked_at ⇒ Object
Returns the value of attribute checked_at.
-
#pid ⇒ Object
Returns the value of attribute pid.
-
#results ⇒ Object
Returns the value of attribute results.
-
#success ⇒ Object
Returns the value of attribute success.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Result
constructor
A new instance of Result.
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_at ⇒ Object
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 |
#pid ⇒ Object
Returns the value of attribute pid.
23 24 25 |
# File 'lib/ddr/actions/fixity_check.rb', line 23 def pid @pid end |
#results ⇒ Object
Returns the value of attribute results.
23 24 25 |
# File 'lib/ddr/actions/fixity_check.rb', line 23 def results @results end |
#success ⇒ Object
Returns the value of attribute success.
23 24 25 |
# File 'lib/ddr/actions/fixity_check.rb', line 23 def success @success end |