Class: RubyOmx::ResponseError

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

Direct Known Subclasses

InternalError, RequestTimeout

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



13
14
15
16
# File 'lib/ruby_omx/response/response_error.rb', line 13

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