Exception: Ubcbooker::Error::MissingRequired
- Inherits:
-
StandardError
- Object
- StandardError
- Ubcbooker::Error::MissingRequired
- Defined in:
- lib/ubcbooker/error.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize ⇒ MissingRequired
constructor
A new instance of MissingRequired.
Constructor Details
#initialize ⇒ MissingRequired
Returns a new instance of MissingRequired.
40 41 42 43 44 45 |
# File 'lib/ubcbooker/error.rb', line 40 def initialize() @message = "Error: Missing Option\n".red << "One or more of required option are missing values\n" << "Please check if options -b, -d, -n, and -t all have values passed" super end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
39 40 41 |
# File 'lib/ubcbooker/error.rb', line 39 def @message end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
39 40 41 |
# File 'lib/ubcbooker/error.rb', line 39 def time @time end |