Class: DoroParser::DoroHttp
- Inherits:
-
Object
- Object
- DoroParser::DoroHttp
- Defined in:
- lib/dorothy2/DEM.rb
Instance Attribute Summary collapse
-
#contype ⇒ Object
readonly
Returns the value of attribute contype.
-
#data ⇒ Object
Returns the value of attribute data.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#ssl ⇒ Object
readonly
Returns the value of attribute ssl.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(flowdeep) ⇒ DoroHttp
constructor
A new instance of DoroHttp.
Constructor Details
#initialize(flowdeep) ⇒ DoroHttp
Returns a new instance of DoroHttp.
168 169 170 171 172 173 174 175 |
# File 'lib/dorothy2/DEM.rb', line 168 def initialize(flowdeep) @data = 'null' @method = (flowdeep.values('http.request.method')[0] ? flowdeep.values('http.request.method')[0].value : 'null') @ssl = false #TODO @size = (flowdeep.values('http.content.length')[0] ? flowdeep.values('http.content.length')[0].value : 'null') @uri = (flowdeep.values('http.request.uri')[0] ? flowdeep.values('http.request.uri')[0].value : 'null' ) @contype = (flowdeep.values('http.content.type')[0] ? flowdeep.values('http.content.type')[0].value : 'null') end |
Instance Attribute Details
#contype ⇒ Object (readonly)
Returns the value of attribute contype.
161 162 163 |
# File 'lib/dorothy2/DEM.rb', line 161 def contype @contype end |
#data ⇒ Object
Returns the value of attribute data.
166 167 168 |
# File 'lib/dorothy2/DEM.rb', line 166 def data @data end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
162 163 164 |
# File 'lib/dorothy2/DEM.rb', line 162 def method @method end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
165 166 167 |
# File 'lib/dorothy2/DEM.rb', line 165 def size @size end |
#ssl ⇒ Object (readonly)
Returns the value of attribute ssl.
164 165 166 |
# File 'lib/dorothy2/DEM.rb', line 164 def ssl @ssl end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
163 164 165 |
# File 'lib/dorothy2/DEM.rb', line 163 def uri @uri end |