Class: Payment::PaypalStatusResult

Inherits:
Data
  • Object
show all
Defined in:
app/models/payment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status:, message: nil) ⇒ PaypalStatusResult

Returns a new instance of PaypalStatusResult.



475
# File 'app/models/payment.rb', line 475

def initialize(status:, message: nil) = super

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



474
475
476
# File 'app/models/payment.rb', line 474

def message
  @message
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



474
475
476
# File 'app/models/payment.rb', line 474

def status
  @status
end

Instance Method Details

#ok?Boolean

Returns:

  • (Boolean)


476
# File 'app/models/payment.rb', line 476

def ok? = status.in?(%i[authorized reauthorized captured still_valid])