Class: Netconf::NetconfClient::GetResponse
- Inherits:
-
RpcResponse
- Object
- RpcResponse
- Netconf::NetconfClient::GetResponse
- Defined in:
- lib/util/client/netconf/netconf_client.rb
Overview
Parse responses, using REXML xpath queries to pull data from the response
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Attributes inherited from RpcResponse
Instance Method Summary collapse
Methods inherited from RpcResponse
#errors?, #errors_as_string, #response
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
290 291 292 |
# File 'lib/util/client/netconf/netconf_client.rb', line 290 def data @data end |
Instance Method Details
#data_as_string ⇒ Object
292 293 294 295 296 297 298 |
# File 'lib/util/client/netconf/netconf_client.rb', line 292 def data_as_string o = StringIO.new @data.each do |ce| o.write(ce) end o.string end |