Class: Oncall::Core::Assertion
- Inherits:
-
Object
- Object
- Oncall::Core::Assertion
- Defined in:
- lib/oncall/core/assertion.rb
Instance Method Summary collapse
-
#initialize(response) ⇒ Assertion
constructor
A new instance of Assertion.
- #status(expected) ⇒ Object
Constructor Details
Instance Method Details
#status(expected) ⇒ Object
9 10 11 12 |
# File 'lib/oncall/core/assertion.rb', line 9 def status(expected) result = @response.code == expected.to_s @reporter.report_status(result) end |