Exception: Paypal::Permissions::FaultMessage
- Defined in:
- lib/paypal/permissions/fault_message.rb
Overview
PayPal returned a well formatted error message
Defined Under Namespace
Classes: ErrorInformation
Instance Attribute Summary collapse
-
#ack ⇒ Object
Returns the value of attribute ack.
-
#build ⇒ Object
Returns the value of attribute build.
-
#correlation_id ⇒ Object
Returns the value of attribute correlation_id.
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ FaultMessage
constructor
A new instance of FaultMessage.
Constructor Details
#initialize(options = {}) ⇒ FaultMessage
Returns a new instance of FaultMessage.
36 37 38 39 40 41 42 43 44 |
# File 'lib/paypal/permissions/fault_message.rb', line 36 def initialize( = {}) @timestamp = ['timestamp'] @ack = ['ack'].to_s.downcase.to_sym @correlation_id = ['correlationId'] @build = ['build'] @errors = collect_errors() @message = @ack end |
Instance Attribute Details
#ack ⇒ Object
Returns the value of attribute ack.
20 21 22 |
# File 'lib/paypal/permissions/fault_message.rb', line 20 def ack @ack end |
#build ⇒ Object
Returns the value of attribute build.
20 21 22 |
# File 'lib/paypal/permissions/fault_message.rb', line 20 def build @build end |
#correlation_id ⇒ Object
Returns the value of attribute correlation_id.
20 21 22 |
# File 'lib/paypal/permissions/fault_message.rb', line 20 def correlation_id @correlation_id end |
#errors ⇒ Object
Returns the value of attribute errors.
20 21 22 |
# File 'lib/paypal/permissions/fault_message.rb', line 20 def errors @errors end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
20 21 22 |
# File 'lib/paypal/permissions/fault_message.rb', line 20 def @timestamp end |