Class: SOAP::NetHttpClient::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/action_web_service/soap/netHttpClient.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(res) ⇒ Response

Returns a new instance of Response.



180
181
182
183
184
185
# File 'lib/action_web_service/soap/netHttpClient.rb', line 180

def initialize(res)
  @status = res.code.to_i
  @reason = res.message
  @contenttype = res['content-type']
  @content = res.body
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



175
176
177
# File 'lib/action_web_service/soap/netHttpClient.rb', line 175

def content
  @content
end

#contenttypeObject (readonly)

Returns the value of attribute contenttype.



178
179
180
# File 'lib/action_web_service/soap/netHttpClient.rb', line 178

def contenttype
  @contenttype
end

#reasonObject (readonly)

Returns the value of attribute reason.



177
178
179
# File 'lib/action_web_service/soap/netHttpClient.rb', line 177

def reason
  @reason
end

#statusObject (readonly)

Returns the value of attribute status.



176
177
178
# File 'lib/action_web_service/soap/netHttpClient.rb', line 176

def status
  @status
end