Class: Pione::Util::CGIResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/pione/util/cgi.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCGIResponse

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

#bodyObject

Returns the value of attribute body.



267
268
269
# File 'lib/pione/util/cgi.rb', line 267

def body
  @body
end

#content_typeObject

Returns the value of attribute content_type.



263
264
265
# File 'lib/pione/util/cgi.rb', line 263

def content_type
  @content_type
end

#locationObject

Returns the value of attribute location.



264
265
266
# File 'lib/pione/util/cgi.rb', line 264

def location
  @location
end

#nphObject

Returns the value of attribute nph.



262
263
264
# File 'lib/pione/util/cgi.rb', line 262

def nph
  @nph
end

#reason_phraseObject

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_codeObject

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

Returns:

  • (Boolean)


278
279
280
# File 'lib/pione/util/cgi.rb', line 278

def nph?
  @nph
end

#valid?Boolean

Returns:

  • (Boolean)


282
283
284
# File 'lib/pione/util/cgi.rb', line 282

def valid?
  not(@content_type.nil?)
end