Class: Payment::PurchaseDetails

Inherits:
Object
  • Object
show all
Defined in:
lib/bizLogic/payment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(success, error_message) ⇒ PurchaseDetails

Returns a new instance of PurchaseDetails.



56
57
58
59
# File 'lib/bizLogic/payment.rb', line 56

def initialize(success, error_message)
  @success = success
  @error_message = error_message
end

Instance Attribute Details

#error_messageObject (readonly)

Returns the value of attribute error_message.



55
56
57
# File 'lib/bizLogic/payment.rb', line 55

def error_message
  @error_message
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


60
61
62
# File 'lib/bizLogic/payment.rb', line 60

def success?
  @success
end