Class: Paypal::Exception::APIError::Response::Detail
- Inherits:
-
Object
- Object
- Paypal::Exception::APIError::Response::Detail
- Defined in:
- lib/paypal/exception/api_error.rb
Constant Summary collapse
- @@attribute_mapping =
{ :ERRORCODE => :error_code, :SEVERITYCODE => :severity_code, :LONGMESSAGE => :long_message, :SHORTMESSAGE => :short_message }
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Detail
constructor
A new instance of Detail.
Constructor Details
#initialize(attributes = {}) ⇒ Detail
Returns a new instance of Detail.
52 53 54 55 56 57 58 59 60 61 62 63 |
# 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 |