Exception: Ubcbooker::Error::UnsupportedDepartment
- Inherits:
-
StandardError
- Object
- StandardError
- Ubcbooker::Error::UnsupportedDepartment
- Defined in:
- lib/ubcbooker/error.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(department = "unknown") ⇒ UnsupportedDepartment
constructor
A new instance of UnsupportedDepartment.
Constructor Details
#initialize(department = "unknown") ⇒ UnsupportedDepartment
Returns a new instance of UnsupportedDepartment.
5 6 7 8 9 |
# File 'lib/ubcbooker/error.rb', line 5 def initialize(department = "unknown") = "\"#{department}\" is an unsupported department\n".red << "Check supported departments with `ubcbooker -l`" super end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
4 5 6 |
# File 'lib/ubcbooker/error.rb', line 4 def end |