class DaisybillApi::Models::Base

Attributes

external_errors[RW]

Public Class Methods

new(attrs = {}) click to toggle source
Calls superclass method
# File lib/daisybill_api/models/base.rb, line 14
def initialize(attrs = {})
  self.external_errors = {}
  super
end

Private Instance Methods

external() click to toggle source
# File lib/daisybill_api/models/base.rb, line 21
def external
  return if external_errors.blank?
  external_errors.each { |field, errors|
    errors.each { |error| self.errors.add field, error }
  }
end