class RDStation::ErrorHandler::InvalidEventType
Constants
- ERROR_CODE
- PATH
Attributes
errors[R]
Public Class Methods
new(errors)
click to toggle source
# File lib/rdstation/error_handler/invalid_event_type.rb, line 9 def initialize(errors) @errors = errors end
Public Instance Methods
raise_error()
click to toggle source
# File lib/rdstation/error_handler/invalid_event_type.rb, line 13 def raise_error return if invalid_event_type_error.empty? raise RDStation::Error::InvalidEventType, invalid_event_type_error.first end
Private Instance Methods
invalid_event_type_error()
click to toggle source
# File lib/rdstation/error_handler/invalid_event_type.rb, line 20 def invalid_event_type_error errors.select do |error| error.values_at('error_type', 'path') == [ERROR_CODE, PATH] end end