Class: RubyOmx::StandardResponse

Inherits:
Response show all
Defined in:
lib/ruby_omx/response.rb

Instance Method Summary collapse

Methods inherited from Response

format, parse_xml

Methods inherited from Node

#accessors, #as_hash, #initialize

Constructor Details

This class inherits a constructor from RubyOmx::Node

Instance Method Details

#to_sObject



94
95
96
97
# File 'lib/ruby_omx/response.rb', line 94

def to_s
  error_string = self.errors ? self.errors.collect{ |e| e.message.to_s }.join(',') : "none"
  return "success: #{success}, errors: #{error_string}"
end