lib/ury_rapid/baps/responses/responder.rb
def unhandled(response)
          message = "Unhandled response: #{response.name}"
          if response.code.is_a?(Numeric)
            hexcode = response.code.to_s(16)
            message << " (0x#{hexcode})"
          end

          log(:warn, message)
        end
# Mock handler for when a BAPS code has no registered handler
#
# This handler logs a warning, and does nothing else.
#
# @api      semipublic
# @example  'Handle' an unhandled response
#   responder = Responder.new(model, queue)
#   responder.unhandled(a_response)
#
# @param response [Object]
#   A response to 'handle'.
#
# @return [void]
Mock handler for when a BAPS code has no registered handler
This handler logs a warning, and does nothing else.
Mock handler for when a BAPS code has no registered handler This handler logs a warning and does nothing else .
def unhandled(response)
          message = "Unhandled response: #{response.name}"
          if response.code.is_a?(Numeric)
            hexcode = response.code.to_s(16)
            message << " (0x#{hexcode})"
          end
          log(:warn, message)
        end
def unhandled ( response ) message = "Unhandled response: #{response.name}" if response . code . is_a? ( Numeric ) hexcode = response . code . to_s ( 16 ) message << " (0x#{hexcode})" end log ( :warn , message ) end
Mock handler for when a BAPS code has no registered handler
This handler logs a warning, and does nothing else.
Mock handler for when a BAPS code has no registered handler This handler logs a warning and does nothing else .
None
void
response
A response to 'handle'.
A response to ' handle ' .
api
None
example
'Handle' an unhandled response responder = Responder.new(model, queue) responder.unhandled(a_response)
' Handle ' an unhandled response responder = Responder . new ( model queue ) responder . unhandled ( a_response )