Class: Pione::Util::CGIResponse
- Inherits:
-
Object
- Object
- Pione::Util::CGIResponse
- Defined in:
- lib/pione/util/cgi.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#location ⇒ Object
Returns the value of attribute location.
-
#nph ⇒ Object
Returns the value of attribute nph.
-
#reason_phrase ⇒ Object
Returns the value of attribute reason_phrase.
-
#status_code ⇒ Object
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize ⇒ CGIResponse
constructor
A new instance of CGIResponse.
- #nph? ⇒ Boolean
- #valid? ⇒ Boolean
Constructor Details
#initialize ⇒ CGIResponse
Returns a new instance of CGIResponse.
269 270 271 272 273 274 275 276 |
# File 'lib/pione/util/cgi.rb', line 269 def initialize @nph = false @content_type = nil @location = nil @status_code = 200 @reason_phrase = nil @body = nil end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
267 268 269 |
# File 'lib/pione/util/cgi.rb', line 267 def body @body end |
#content_type ⇒ Object
Returns the value of attribute content_type.
263 264 265 |
# File 'lib/pione/util/cgi.rb', line 263 def content_type @content_type end |
#location ⇒ Object
Returns the value of attribute location.
264 265 266 |
# File 'lib/pione/util/cgi.rb', line 264 def location @location end |
#nph ⇒ Object
Returns the value of attribute nph.
262 263 264 |
# File 'lib/pione/util/cgi.rb', line 262 def nph @nph end |
#reason_phrase ⇒ Object
Returns the value of attribute reason_phrase.
266 267 268 |
# File 'lib/pione/util/cgi.rb', line 266 def reason_phrase @reason_phrase end |
#status_code ⇒ Object
Returns the value of attribute status_code.
265 266 267 |
# File 'lib/pione/util/cgi.rb', line 265 def status_code @status_code end |
Instance Method Details
#nph? ⇒ Boolean
278 279 280 |
# File 'lib/pione/util/cgi.rb', line 278 def nph? @nph end |
#valid? ⇒ Boolean
282 283 284 |
# File 'lib/pione/util/cgi.rb', line 282 def valid? not(@content_type.nil?) end |