Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Latest commit

 

History

History
31 lines (27 loc) · 588 Bytes

README.md

File metadata and controls

31 lines (27 loc) · 588 Bytes

RailsRequestParser

Parse Rails Request Object

Install

Add this line to your application's Gemfile:

gem 'rails_request_parser'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rails_request_parser

Usage

request_parser = RailsRequestParser.new(request)
request_parser.is_mac_os? #=> true
request_parser.is_electron_client? #=> true
request_parser.is_windows_os? #=> false
request_parser.is_chrome_browser? #=> true
request_parser.is_firefox_browser? #=> true
request_parser.is_safari_browser? #=> true

License

MIT