Class: Netconf::NetconfClient::RpcResponse
- Inherits:
-
Object
- Object
- Netconf::NetconfClient::RpcResponse
- Defined in:
- lib/util/client/netconf/netconf_client.rb
Overview
Base class for netconf responses
Uses REXML xpath queries to gather any errors
Direct Known Subclasses
CommitResponse, EditConfigResponse, GetConfigResponse, GetResponse
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
214 215 216 |
# File 'lib/util/client/netconf/netconf_client.rb', line 214 def errors @errors end |
Instance Method Details
#errors? ⇒ Boolean
226 227 228 |
# File 'lib/util/client/netconf/netconf_client.rb', line 226 def errors? !@errors.empty? end |
#errors_as_string ⇒ Object
216 217 218 219 220 221 222 223 224 |
# File 'lib/util/client/netconf/netconf_client.rb', line 216 def errors_as_string s = StringIO.new @errors.each do |e| e.each do |k, v| s.write("#{k} => #{v}\n") end end s.string end |
#response ⇒ Object
230 231 232 |
# File 'lib/util/client/netconf/netconf_client.rb', line 230 def response @doc end |