module BetfairApiNgRails::Api::Http::Helpers::KeepAliveResponse

Public Class Methods

included(base) click to toggle source
# File lib/betfair_api_ng_rails/api/http/helpers/keep_alive_response.rb, line 8
          def self.included(base)
            base.send :class_eval,  <<-CODE
              def has_error_with_keep_alive_response?
                has_error_without_keep_alive_response? || keep_alive_res_error?
              end
              alias_method :has_error_without_keep_alive_response?, :has_error?
              alias_method :has_error?, :has_error_with_keep_alive_response?
            CODE
          end

Protected Instance Methods

check_keep_alive_status() click to toggle source
# File lib/betfair_api_ng_rails/api/http/helpers/keep_alive_response.rb, line 24
def check_keep_alive_status
  result.fetch('status', SUCCESS_LOGIN) != SUCCESS_LOGIN
end
keep_alive_res_error?() click to toggle source
# File lib/betfair_api_ng_rails/api/http/helpers/keep_alive_response.rb, line 20
def keep_alive_res_error?
  set_error_info(:KEEP_ALIVE, result['status']) if check_keep_alive_status
end