Class: LogStruct::Log::Security::BaseFields
- Inherits:
-
T::Struct
- Object
- T::Struct
- LogStruct::Log::Security::BaseFields
- Extended by:
- T::Sig
- Defined in:
- lib/log_struct/log/security.rb
Constant Summary collapse
- Kwargs =
T.type_alias do { path: T.nilable(String), http_method: T.nilable(String), source_ip: T.nilable(String), user_agent: T.nilable(String), referer: T.nilable(String), request_id: T.nilable(String) } end
Instance Attribute Summary collapse
-
#http_method ⇒ String?
readonly
Returns the value of prop
http_method. -
#path ⇒ String?
readonly
Returns the value of prop
path. -
#referer ⇒ String?
readonly
Returns the value of prop
referer. -
#request_id ⇒ String?
readonly
Returns the value of prop
request_id. -
#source_ip ⇒ String?
readonly
Returns the value of prop
source_ip. -
#user_agent ⇒ String?
readonly
Returns the value of prop
user_agent.
Instance Method Summary collapse
- #initialize(path: nil, http_method: nil, source_ip: nil, user_agent: nil, referer: nil, request_id: nil) ⇒ void constructor
- #to_kwargs ⇒ Kwargs
Constructor Details
#initialize(path: nil, http_method: nil, source_ip: nil, user_agent: nil, referer: nil, request_id: nil) ⇒ void
|
|
# File '' const :path, T.nilable(String), default: nil const :http_method, T.nilable(String), default: nil const :source_ip, T.nilable(String), default: nil const :user_agent, T.nilable(String), default: nil const :referer, T.nilable(String), default: nil const :request_id, T.nilable(String), default: nil |
Instance Attribute Details
#http_method ⇒ String? (readonly)
Returns the value of prop http_method.
|
|
# File '' const :http_method, T.nilable(String), default: nil |
#path ⇒ String? (readonly)
Returns the value of prop path.
|
|
# File '' const :path, T.nilable(String), default: nil |
#referer ⇒ String? (readonly)
Returns the value of prop referer.
|
|
# File '' const :referer, T.nilable(String), default: nil |
#request_id ⇒ String? (readonly)
Returns the value of prop request_id.
|
|
# File '' const :request_id, T.nilable(String), default: nil |
#source_ip ⇒ String? (readonly)
Returns the value of prop source_ip.
|
|
# File '' const :source_ip, T.nilable(String), default: nil |
#user_agent ⇒ String? (readonly)
Returns the value of prop user_agent.
|
|
# File '' const :user_agent, T.nilable(String), default: nil |
Instance Method Details
#to_kwargs ⇒ Kwargs
37 38 39 40 41 42 43 44 45 46 |
# File 'lib/log_struct/log/security.rb', line 37 def to_kwargs { path: path, http_method: http_method, source_ip: source_ip, user_agent: user_agent, referer: referer, request_id: request_id } end |