Sha256: bba5ecbb7fd328b3c6abe24a698544d206ee8e5dbba1b6c3169334d431c499c2
Contents?: true
Size: 989 Bytes
Versions: 1
Compression:
Stored size: 989 Bytes
Contents
# ExceptionNotification::Parser https://rubygems.org/gems/exception_notification outputed mail parser. ## Installation Add this line to your application's Gemfile: ```ruby gem 'exception_notification-parser' ``` And then execute: $ bundle ## Usage ```ruby mail_raw = File.read('./mail') # body with header # case 1 struct = ExceptionNotification::Parser.parse(mail_raw: mail_raw) # case 2 mail = Mail.new(mail_raw) body = mail.body.decoded.toutf8 struct = ExceptionNotification::Parser.parse(body: body, subject: mail.suject) ``` ### accessible list ``` subject.exception_class_name subject.action_name subject.controller request_url request_http_method request_ip_address request_timestamp requist_rails_root requist_parameters # hash session_id session_data # hash environment_content_length environment_content_type environment_http_host environment_http_user_agent environment_remote_addr environment_request_path environment_request_uri environment_request_method ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
exception_notification-parser-0.1.0 | README.md |