-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve documentation and configurability (#47)
* Use YARD for documentation * Provide YARD documentation for gem * Refactor to allow configurable logger and formatter classes * Update README
- Loading branch information
Showing
27 changed files
with
426 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,5 @@ | |
/spec/dummy/storage/ | ||
/spec/dummy/tmp/ | ||
*.gem | ||
.yardoc/ | ||
docs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--output-dir docs/ | ||
--private | ||
--markup=markdown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
# frozen_string_literal: true | ||
|
||
module EventLoggerRails | ||
## | ||
# Provides global state with request details | ||
class CurrentRequest < ActiveSupport::CurrentAttributes | ||
# @note Defines the attributes for the current request object. | ||
# @!attribute [rw] id | ||
# @return [String] The ID of the request. | ||
# @!attribute [rw] format | ||
# @return [Symbol] The format of the request. | ||
# @!attribute [rw] method | ||
# @return [String] The HTTP method of the request. | ||
# @!attribute [rw] parameters | ||
# @return [Hash] The parameters of the request. | ||
# @!attribute [rw] path | ||
# @return [String] The path of the request. | ||
# @!attribute [rw] remote_ip | ||
# @return [String] The remote IP of the request. | ||
attribute :id, :format, :method, :parameters, :path, :remote_ip | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.