Class: SystemUser
- Inherits:
-
Object
- Object
- SystemUser
- Defined in:
- app/models/system_user.rb
Class Method Summary collapse
Class Method Details
.mediaflux_session ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'app/models/system_user.rb', line 3 def self.mediaflux_session Rails.cache.fetch("mediaflux_session", expires_in: 10.minutes) do logon_request = Mediaflux::LogonRequest.new if logon_request.error? raise Mediaflux::SessionError, "System logon was invalid! #{logon_request.response_error}" end logon_request.session_token end end |