class BaseCRM::ErrorsCollection

Attributes

errors[R]
http_status[R]
logref[R]
request_id[R]

Public Class Methods

new(errors, meta) click to toggle source
# File lib/basecrm/errors.rb, line 53
def initialize(errors, meta)
  @errors = errors

  @http_status = meta[:http_status]
  @logref = meta[:logref]
end

Public Instance Methods

to_s() click to toggle source
# File lib/basecrm/errors.rb, line 60
def to_s
  status = "[#{@logref}] http_status=#{@http_status}\n"
  status + @errors.map(&:to_s).join("\n")
end