Class: Bricolage::SQSMock::Response
- Inherits:
-
Object
- Object
- Bricolage::SQSMock::Response
- Defined in:
- lib/bricolage/sqsmock.rb
Overview
success/failure only result
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(successful:) ⇒ Response
constructor
A new instance of Response.
- #successful? ⇒ Boolean
Constructor Details
#initialize(successful:) ⇒ Response
Returns a new instance of Response.
75 76 77 |
# File 'lib/bricolage/sqsmock.rb', line 75 def initialize(successful:) @successful = successful end |
Class Method Details
.successful ⇒ Object
71 72 73 |
# File 'lib/bricolage/sqsmock.rb', line 71 def Response.successful new(successful: true) end |
Instance Method Details
#successful? ⇒ Boolean
79 80 81 |
# File 'lib/bricolage/sqsmock.rb', line 79 def successful? @successful end |