Class: SOAP::NetHttpClient::Response

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(res) ⇒ Response

Returns a new instance of Response.



194
195
196
197
198
199
# File 'lib/soap/netHttpClient.rb', line 194

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.



189
190
191
# File 'lib/soap/netHttpClient.rb', line 189

def content
  @content
end

#contenttypeObject (readonly)

Returns the value of attribute contenttype.



192
193
194
# File 'lib/soap/netHttpClient.rb', line 192

def contenttype
  @contenttype
end

#reasonObject (readonly)

Returns the value of attribute reason.



191
192
193
# File 'lib/soap/netHttpClient.rb', line 191

def reason
  @reason
end

#statusObject (readonly)

Returns the value of attribute status.



190
191
192
# File 'lib/soap/netHttpClient.rb', line 190

def status
  @status
end