class Paypal::Exception::APIError::Response::Detail

Public Class Methods

new(attributes = {}) click to toggle source
# File lib/paypal/exception/api_error.rb, line 52
def initialize(attributes = {})
  @raw = attributes
  attrs = attributes.dup
  @@attribute_mapping.each do |key, value|
    self.send "#{value}=", attrs.delete(key)
  end

  # warn ignored params
  attrs.each do |key, value|
    Paypal.log "Ignored Parameter (#{self.class}): #{key}=#{value}", :warn
  end
end