Class: Netconf::NetconfClient::GetResponse

Inherits:
RpcResponse
  • Object
show all
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

Attributes inherited from RpcResponse

#errors

Instance Method Summary collapse

Methods inherited from RpcResponse

#errors?, #errors_as_string, #response

Instance Attribute Details

#dataObject (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_stringObject



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