Exception: Ubcbooker::Error::BookingFailed

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBookingFailed

Returns a new instance of BookingFailed.



73
74
75
76
77
# File 'lib/ubcbooker/error.rb', line 73

def initialize
  @message = "\nBooking Failed :/\n".red <<
    "Please raise an issue on GitHub"
  super
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



72
73
74
# File 'lib/ubcbooker/error.rb', line 72

def message
  @message
end