Exception: Ubcbooker::Error::MissingRequired

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ubcbooker/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMissingRequired

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

#messageObject (readonly)

Returns the value of attribute message.



39
40
41
# File 'lib/ubcbooker/error.rb', line 39

def message
  @message
end

#timeObject (readonly)

Returns the value of attribute time.



39
40
41
# File 'lib/ubcbooker/error.rb', line 39

def time
  @time
end