Class: PayPal::AdaptivePayments::Response::PayError

Inherits:
Object
  • Object
show all
Includes:
Common::Base
Defined in:
lib/paypal/adaptive_payments/response/pay_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Common::Base

#after_initialize, #build_datetime, #build_value, #camelize, #hash_keys, #initialize, #request, #to_hash, #to_json, #underscore

Instance Attribute Details

#errorObject

Returns the value of attribute error.



5
6
7
# File 'lib/paypal/adaptive_payments/response/pay_error.rb', line 5

def error
  @error
end

#receiverObject

Returns the value of attribute receiver.



6
7
8
# File 'lib/paypal/adaptive_payments/response/pay_error.rb', line 6

def receiver
  @receiver
end

Instance Method Details

#set_error(value) ⇒ Object



8
9
10
# File 'lib/paypal/adaptive_payments/response/pay_error.rb', line 8

def set_error(value)
  self.error = build_value(ErrorData, value)
end

#set_receiver(value) ⇒ Object



12
13
14
# File 'lib/paypal/adaptive_payments/response/pay_error.rb', line 12

def set_receiver(value)
  self.receiver = build_value(Receiver, value)
end