Class: Kapnismology::Success
- Inherits:
-
BaseResult
- Object
- BaseResult
- Kapnismology::Success
- Defined in:
- lib/kapnismology/result.rb
Overview
Use this class when your test is not valid in the current situation For instance when you have a test for deployments that have not happen, etc.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from BaseResult
#data, #debug_messages, #message
Instance Method Summary collapse
-
#initialize(data, message) ⇒ Success
constructor
A new instance of Success.
Methods inherited from BaseResult
#add_debug_messages, #passed?, #to_hash, #to_s
Constructor Details
#initialize(data, message) ⇒ Success
Returns a new instance of Success.
94 95 96 97 98 99 100 |
# File 'lib/kapnismology/result.rb', line 94 def initialize(data, ) raise ArgumentError, 'data argument must be a hash' unless data.is_a?(Hash) @passed = true @data = data = = [] end |