Module: AnyCable::StatusPredicates
- Included in:
- CommandResponse, ConnectionResponse, DisconnectResponse
- Defined in:
- lib/anycable/rpc.rb
Overview
Status predicates
Instance Method Summary collapse
Instance Method Details
#error? ⇒ Boolean
65 66 67 |
# File 'lib/anycable/rpc.rb', line 65 def error? status == :ERROR end |
#failure? ⇒ Boolean
61 62 63 |
# File 'lib/anycable/rpc.rb', line 61 def failure? status == :FAILURE end |
#success? ⇒ Boolean
57 58 59 |
# File 'lib/anycable/rpc.rb', line 57 def success? status == :SUCCESS end |