Exception: BitJWT::ProtocolError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/bitjwt/protocol_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



3
4
5
# File 'lib/bitjwt/protocol_error.rb', line 3

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



3
4
5
# File 'lib/bitjwt/protocol_error.rb', line 3

def status
  @status
end