Exception: Paypal::Permissions::FaultMessage

Inherits:
Error
  • Object
show all
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

Instance Method Summary collapse

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(options = {})
  @timestamp      = options['timestamp']
  @ack            = options['ack'].to_s.downcase.to_sym
  @correlation_id = options['correlationId']
  @build          = options['build']
  @errors         = collect_errors(options)

  @message = @ack
end

Instance Attribute Details

#ackObject

Returns the value of attribute ack.



20
21
22
# File 'lib/paypal/permissions/fault_message.rb', line 20

def ack
  @ack
end

#buildObject

Returns the value of attribute build.



20
21
22
# File 'lib/paypal/permissions/fault_message.rb', line 20

def build
  @build
end

#correlation_idObject

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

#errorsObject

Returns the value of attribute errors.



20
21
22
# File 'lib/paypal/permissions/fault_message.rb', line 20

def errors
  @errors
end

#timestampObject

Returns the value of attribute timestamp.



20
21
22
# File 'lib/paypal/permissions/fault_message.rb', line 20

def timestamp
  @timestamp
end