Class: Payment::PurchaseDetails
- Inherits:
-
Object
- Object
- Payment::PurchaseDetails
- Defined in:
- lib/bizLogic/payment.rb
Instance Attribute Summary collapse
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
Instance Method Summary collapse
-
#initialize(success, error_message) ⇒ PurchaseDetails
constructor
A new instance of PurchaseDetails.
- #success? ⇒ Boolean
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, ) @success = success @error_message = end |
Instance Attribute Details
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
55 56 57 |
# File 'lib/bizLogic/payment.rb', line 55 def @error_message end |
Instance Method Details
#success? ⇒ Boolean
60 61 62 |
# File 'lib/bizLogic/payment.rb', line 60 def success? @success end |