Module: CASino::ProcessorConcern::Browser
- Included in:
- LoginCredentialRequestorProcessor, TicketGrantingTickets
- Defined in:
- app/processors/casino/processor_concern/browser.rb
Instance Method Summary collapse
Instance Method Details
#browser_info(user_agent) ⇒ Object
4 5 6 7 |
# File 'app/processors/casino/processor_concern/browser.rb', line 4 def browser_info(user_agent) user_agent = UserAgent.parse(user_agent) "#{user_agent.browser} (#{user_agent.platform})" end |
#same_browser?(user_agent, other_user_agent) ⇒ Boolean
9 10 11 |
# File 'app/processors/casino/processor_concern/browser.rb', line 9 def same_browser?(user_agent, other_user_agent) user_agent == other_user_agent || browser_info(user_agent) == browser_info(other_user_agent) end |