Module: BetfairApiNgRails::Api::Http::Helpers::KeepAliveResponse

Includes:
Constants
Included in:
Responser
Defined in:
lib/betfair_api_ng_rails/api/http/helpers/keep_alive_response.rb

Constant Summary

Constants included from Constants

Constants::ALLOWED_FORMATTING, Constants::ALLOWED_RESOURCES, Constants::API_REQUEST_HEADERS, Constants::JSON_METHOD, Constants::KEEP_ALIVE_URL, Constants::LOADABLE_CONFIG_OPTIONS, Constants::SESSION_REQUEST_HEADERS, Constants::SIMPLE_LISTING_FILTERED, Constants::SUCCESS_LOGIN

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



8
9
10
11
12
13
14
15
16
# 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