Class: Burden::StorageBackends::Abstract::Run
- Inherits:
-
Object
- Object
- Burden::StorageBackends::Abstract::Run
- Defined in:
- lib/burden/storage_backends/abstract/run.rb
Instance Attribute Summary collapse
-
#execution_time ⇒ Object
Returns the value of attribute execution_time.
-
#name ⇒ Object
Returns the value of attribute name.
-
#success ⇒ Object
Returns the value of attribute success.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
- #history(task_name) ⇒ Object
-
#initialize(attributes = {}) ⇒ Run
constructor
A new instance of Run.
- #save ⇒ Object
- #summary ⇒ Object
Constructor Details
#initialize(attributes = {}) ⇒ Run
Returns a new instance of Run.
7 8 9 10 11 12 |
# File 'lib/burden/storage_backends/abstract/run.rb', line 7 def initialize(attributes = {}) @name = attributes[:name] @success = attributes[:success] @execution_time = attributes[:execution_time] @timestamp = attributes[:timestamp] end |
Instance Attribute Details
#execution_time ⇒ Object
Returns the value of attribute execution_time.
5 6 7 |
# File 'lib/burden/storage_backends/abstract/run.rb', line 5 def execution_time @execution_time end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/burden/storage_backends/abstract/run.rb', line 5 def name @name end |
#success ⇒ Object
Returns the value of attribute success.
5 6 7 |
# File 'lib/burden/storage_backends/abstract/run.rb', line 5 def success @success end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
5 6 7 |
# File 'lib/burden/storage_backends/abstract/run.rb', line 5 def @timestamp end |
Instance Method Details
#history(task_name) ⇒ Object
22 23 24 |
# File 'lib/burden/storage_backends/abstract/run.rb', line 22 def history(task_name) raise NotImplementedError.new('Method #history must be overwritten') end |
#save ⇒ Object
14 15 16 |
# File 'lib/burden/storage_backends/abstract/run.rb', line 14 def save raise NotImplementedError.new('Method #save must be overwritten') end |
#summary ⇒ Object
18 19 20 |
# File 'lib/burden/storage_backends/abstract/run.rb', line 18 def summary raise NotImplementedError.new('Method #summary must be overwritten') end |