Exception: Knu::InvalidRequest
- Inherits:
-
Exception
- Object
- Exception
- Knu::InvalidRequest
- Defined in:
- lib/knu/knu.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ InvalidRequest
constructor
A new instance of InvalidRequest.
Constructor Details
#initialize(code, message) ⇒ InvalidRequest
Returns a new instance of InvalidRequest.
7 8 9 10 |
# File 'lib/knu/knu.rb', line 7 def initialize(code, ) @code = code super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
6 7 8 |
# File 'lib/knu/knu.rb', line 6 def code @code end |