Class: SOAP::RPC::CGIStub::SOAPFCGIRequest

Inherits:
SOAPRequest show all
Defined in:
lib/soap/rpc/cgistub.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(request) ⇒ SOAPFCGIRequest

Returns a new instance of SOAPFCGIRequest.


61
62
63
64
# File 'lib/soap/rpc/cgistub.rb', line 61

def initialize(request)
  @request = request
  @body = @request.in.read
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body


59
60
61
# File 'lib/soap/rpc/cgistub.rb', line 59

def body
  @body
end

Instance Method Details

#[](var) ⇒ Object


66
67
68
# File 'lib/soap/rpc/cgistub.rb', line 66

def [](var)
  @request.env[var.gsub(/-/, '_').upcase]
end

#meta_varsObject


70
71
72
73
74
# File 'lib/soap/rpc/cgistub.rb', line 70

def meta_vars
  {
    'HTTP_SOAPACTION' => @request.env['HTTP_SOAPAction']
  }
end