Class: BetfairApiNgRails::Api::SessionManager
- Inherits:
-
Struct
- Object
- Struct
- BetfairApiNgRails::Api::SessionManager
- Includes:
- Concerns::Errorable, Constants
- Defined in:
- lib/betfair_api_ng_rails/api/session_manager.rb
Defined Under Namespace
Classes: SsoidRequester
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
Instance Attribute Summary collapse
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
Instance Method Summary collapse
Methods included from Concerns::Errorable
Instance Attribute Details
#endpoint ⇒ Object
Returns the value of attribute endpoint
6 7 8 |
# File 'lib/betfair_api_ng_rails/api/session_manager.rb', line 6 def endpoint @endpoint end |
Instance Method Details
#expire_ssoid(account) ⇒ Object
16 17 18 19 |
# File 'lib/betfair_api_ng_rails/api/session_manager.rb', line 16 def expire_ssoid(account) username = account.username BetfairApiNgRails.account_session_manager.expire username end |
#get_ssoid(account) ⇒ Object
10 11 12 13 14 |
# File 'lib/betfair_api_ng_rails/api/session_manager.rb', line 10 def get_ssoid(account) username = account.username ssoid = BetfairApiNgRails.account_session_manager.get username ssoid || SsoidRequester.new(account, endpoint).get end |