Exception: Kaede::SyoboiCalendar::HttpError
- Inherits:
-
StandardError
- Object
- StandardError
- Kaede::SyoboiCalendar::HttpError
- Defined in:
- lib/kaede/syoboi_calendar.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(res) ⇒ HttpError
constructor
A new instance of HttpError.
Constructor Details
#initialize(res) ⇒ HttpError
Returns a new instance of HttpError.
10 11 12 13 |
# File 'lib/kaede/syoboi_calendar.rb', line 10 def initialize(res) super("HttpError: status=#{res.code}") @response = res end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
9 10 11 |
# File 'lib/kaede/syoboi_calendar.rb', line 9 def response @response end |