Class: HttpLogReader::Request::RequestLine
- Inherits:
-
Object
- Object
- HttpLogReader::Request::RequestLine
- Defined in:
- lib/http_log_reader.rb
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#protocol ⇒ Object
readonly
Returns the value of attribute protocol.
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
-
#to_s ⇒ Object
readonly
Returns the value of attribute to_s.
Instance Method Summary collapse
-
#initialize(string) ⇒ RequestLine
constructor
A new instance of RequestLine.
Constructor Details
#initialize(string) ⇒ RequestLine
Returns a new instance of RequestLine.
63 64 65 66 |
# File 'lib/http_log_reader.rb', line 63 def initialize( string ) @to_s = string @method, @resource, @protocol = string.split /\s+/ end |
Instance Attribute Details
#method ⇒ Object (readonly)
Returns the value of attribute method.
61 62 63 |
# File 'lib/http_log_reader.rb', line 61 def method @method end |
#protocol ⇒ Object (readonly)
Returns the value of attribute protocol.
61 62 63 |
# File 'lib/http_log_reader.rb', line 61 def protocol @protocol end |
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
61 62 63 |
# File 'lib/http_log_reader.rb', line 61 def resource @resource end |
#to_s ⇒ Object (readonly)
Returns the value of attribute to_s.
61 62 63 |
# File 'lib/http_log_reader.rb', line 61 def to_s @to_s end |