class OpenObject::BackendResponse

Encapsultation of open_object responses

Attributes

content[RW]
errors[RW]
success[RW]

Public Class Methods

new(success: false, errors: [], content: nil, base_model_class: nil) click to toggle source

Build a new ‘BackendResponse` object to carry the OpenObject response in a standard structure

@param success [Boolean] ‘true` if the operation succeed @param errors [Hash] the errors object with `faultCode` and `faultString` keys @param content [String, Hash, Array] any valid xmlrpc response @param base_model_class [String] model class string name @return [BackendResponse]

# File lib/open_object.rb, line 97
def initialize(success: false, errors: [], content: nil, base_model_class: nil)
  @success = success
  @errors = errors
  @content = content
end