class Ubcbooker::Error::UnsupportedDate

Attributes

date[R]
message[R]

Public Class Methods

new(date = "unknown") click to toggle source
Calls superclass method
# File lib/ubcbooker/error.rb, line 14
def initialize(date = "unknown")
  @date = date
  @message = "Error: Unsupported Date\n".red <<
    "Date must not be:\n" <<
    "  - in the past\n" <<
    "  - in a weekend\n" <<
    "  - beyond a week\n" <<
    "Please check if the time is in the format of MM/DD\n" <<
    "Ex. 03/05"
  super
end