Class: HttpLogReader::Request::RequestLine

Inherits:
Object
  • Object
show all
Defined in:
lib/http_log_reader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#methodObject (readonly)

Returns the value of attribute method.



61
62
63
# File 'lib/http_log_reader.rb', line 61

def method
  @method
end

#protocolObject (readonly)

Returns the value of attribute protocol.



61
62
63
# File 'lib/http_log_reader.rb', line 61

def protocol
  @protocol
end

#resourceObject (readonly)

Returns the value of attribute resource.



61
62
63
# File 'lib/http_log_reader.rb', line 61

def resource
  @resource
end

#to_sObject (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