Class: Netconf::NetconfClient::GetConfigResponse
- Inherits:
-
RpcResponse
- Object
- RpcResponse
- Netconf::NetconfClient::GetConfigResponse
- Defined in:
- lib/util/client/netconf/netconf_client.rb
Overview
Parse configuration responses, using REXML xpath queries to pull configuration data from the response
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Attributes inherited from RpcResponse
Instance Method Summary collapse
Methods inherited from RpcResponse
#errors?, #errors_as_string, #response
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
257 258 259 |
# File 'lib/util/client/netconf/netconf_client.rb', line 257 def config @config end |
Instance Method Details
#config_as_string ⇒ Object
259 260 261 262 263 264 265 |
# File 'lib/util/client/netconf/netconf_client.rb', line 259 def config_as_string o = StringIO.new @config.each do |ce| o.write(ce) end o.string end |