Module: BetfairApiNgRails::Api::Http::Helpers::SessionResponse
- Includes:
- Constants
- Included in:
- Responser
- Defined in:
- lib/betfair_api_ng_rails/api/http/helpers/session_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
Instance 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/session_response.rb', line 8
def self.included(base)
base.send :class_eval, <<-CODE
def has_error_with_session_response?
has_error_without_session_response? || session_res_error?
end
alias_method :has_error_without_session_response?, :has_error?
alias_method :has_error?, :has_error_with_session_response?
CODE
end
|
Instance Method Details
#session_token ⇒ Object
18
19
20
|
# File 'lib/betfair_api_ng_rails/api/http/helpers/session_response.rb', line 18
def session_token
result['sessionToken']
end
|