Class: Mach::NormalizedString
- Inherits:
-
Object
- Object
- Mach::NormalizedString
- Defined in:
- lib/mach/normalized_string.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ NormalizedString
constructor
A new instance of NormalizedString.
- #to_s ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ NormalizedString
Returns a new instance of NormalizedString.
3 4 5 6 7 8 9 10 11 |
# File 'lib/mach/normalized_string.rb', line 3 def initialize( = {}) @timestamp = [:timestamp] @nonce = [:nonce] @request_method = [:request_method] @path = [:path] @host = [:host] @port = [:port] @ext = [:ext] || "\n" end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/mach/normalized_string.rb', line 13 def to_s [@timestamp, @nonce, @request_method, @path, @host, @port, @ext].join("\n") end |