Class: Retab::AssertionFailure
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::AssertionFailure
- Defined in:
- lib/retab/workflow_test_run_results/assertion_failure.rb
Constant Summary collapse
- HASH_ATTRS =
{ code: :code, message: :message, details: :details }.freeze
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#details ⇒ Object
Returns the value of attribute details.
-
#message ⇒ Object
Returns the value of attribute message.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ AssertionFailure
constructor
A new instance of AssertionFailure.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ AssertionFailure
Returns a new instance of AssertionFailure.
19 20 21 22 23 24 |
# File 'lib/retab/workflow_test_run_results/assertion_failure.rb', line 19 def initialize(json) hash = self.class.normalize(json) @code = hash[:code] @message = hash[:message] @details = hash[:details] || {} end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
14 15 16 |
# File 'lib/retab/workflow_test_run_results/assertion_failure.rb', line 14 def code @code end |
#details ⇒ Object
Returns the value of attribute details.
14 15 16 |
# File 'lib/retab/workflow_test_run_results/assertion_failure.rb', line 14 def details @details end |
#message ⇒ Object
Returns the value of attribute message.
14 15 16 |
# File 'lib/retab/workflow_test_run_results/assertion_failure.rb', line 14 def @message end |