class TicketingHub::ErrorHandler
Constants
- ERROR_MAP
Public Instance Methods
on_complete(response)
click to toggle source
# File lib/ticketing_hub/connection.rb, line 20 def on_complete response key = response[:status].to_i raise ERROR_MAP[key].new(response) if ERROR_MAP.has_key? key end