Class: Lapis::Yggdrasil::Messaging::Response Abstract
- Inherits:
-
Object
- Object
- Lapis::Yggdrasil::Messaging::Response
- Defined in:
- lib/lapis/yggdrasil/messaging/response.rb
Overview
This class is abstract.
Base class for all response messages received from the server.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#status ⇒ Fixnum
readonly
HTTP status code given in the response.
Instance Method Summary collapse
-
#ok? ⇒ true, false
Determines whether the result of the request was a success.
Instance Attribute Details
#status ⇒ Fixnum (readonly)
HTTP status code given in the response.
11 12 13 |
# File 'lib/lapis/yggdrasil/messaging/response.rb', line 11 def status @status end |
Instance Method Details
#ok? ⇒ true, false
Determines whether the result of the request was a success.
16 17 18 |
# File 'lib/lapis/yggdrasil/messaging/response.rb', line 16 def ok? @is_ok end |