Class: NeverBounce::API::Response::Message
- Defined in:
- lib/never_bounce/api/response/message.rb
Overview
A response message from the server. A top-level container with a few extra features.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Container
Instance Method Summary collapse
-
#error? ⇒ Boolean
true
if this an error message. -
#ok? ⇒ Boolean
An alias to #success?.
-
#success? ⇒ Boolean
abstract
true
if this is a success message.
Methods inherited from Container
Instance Method Details
#error? ⇒ Boolean
true
if this an error message.
10 11 12 |
# File 'lib/never_bounce/api/response/message.rb', line 10 def error? !success? end |
#ok? ⇒ Boolean
An alias to #success?.
15 16 17 |
# File 'lib/never_bounce/api/response/message.rb', line 15 def ok? success? end |
#success? ⇒ Boolean
This method is abstract.
true
if this is a success message.
21 22 23 |
# File 'lib/never_bounce/api/response/message.rb', line 21 def success? raise NotImplementedError, "Redefine `success?` in your class: #{self.class}" end |