Exception: Tidepool::HTTPError
- Inherits:
-
StandardError
- Object
- StandardError
- Tidepool::HTTPError
- Defined in:
- lib/tidepool/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ HTTPError
constructor
A new instance of HTTPError.
Constructor Details
#initialize(code, message) ⇒ HTTPError
Returns a new instance of HTTPError.
5 6 7 8 |
# File 'lib/tidepool/error.rb', line 5 def initialize(code, ) @code = code super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
10 11 12 |
# File 'lib/tidepool/error.rb', line 10 def code @code end |