Exception: BitJWT::ProtocolError
- Inherits:
-
StandardError
- Object
- StandardError
- BitJWT::ProtocolError
- Defined in:
- lib/bitjwt/protocol_error.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, body) ⇒ ProtocolError
constructor
A new instance of ProtocolError.
Constructor Details
#initialize(status, body) ⇒ ProtocolError
Returns a new instance of ProtocolError.
5 6 7 8 |
# File 'lib/bitjwt/protocol_error.rb', line 5 def initialize(status, body) @status = status @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
3 4 5 |
# File 'lib/bitjwt/protocol_error.rb', line 3 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/bitjwt/protocol_error.rb', line 3 def status @status end |