Class: Vpago::PaymentRequestUpdater

Inherits:
Object
  • Object
show all
Defined in:
lib/vpago/payment_request_updater.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payment, options = {}) ⇒ PaymentRequestUpdater



5
6
7
8
9
# File 'lib/vpago/payment_request_updater.rb', line 5

def initialize(payment, options = {})
  @options = options
  @payment = payment
  @error_message = nil
end

Instance Attribute Details

#error_messageObject

Returns the value of attribute error_message.



3
4
5
# File 'lib/vpago/payment_request_updater.rb', line 3

def error_message
  @error_message
end

#paymentObject

Returns the value of attribute payment.



3
4
5
# File 'lib/vpago/payment_request_updater.rb', line 3

def payment
  @payment
end

Instance Method Details

#ignore_on_failed?Boolean



11
12
13
# File 'lib/vpago/payment_request_updater.rb', line 11

def ignore_on_failed?
  @options[:ignore_on_failed] || false
end

#success?Boolean



15
16
17
# File 'lib/vpago/payment_request_updater.rb', line 15

def success?
  @error_message.nil?
end