Class: Payment::PaymentDetails
- Inherits:
-
Object
- Object
- Payment::PaymentDetails
- Defined in:
- lib/bizLogic/payment.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
Instance Method Summary collapse
-
#initialize(success, error_message, address) ⇒ PaymentDetails
constructor
A new instance of PaymentDetails.
- #success? ⇒ Boolean
Constructor Details
#initialize(success, error_message, address) ⇒ PaymentDetails
Returns a new instance of PaymentDetails.
32 33 34 35 36 |
# File 'lib/bizLogic/payment.rb', line 32 def initialize(success, , address) @success = success @error_message = @address = address end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
31 32 33 |
# File 'lib/bizLogic/payment.rb', line 31 def address @address end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
31 32 33 |
# File 'lib/bizLogic/payment.rb', line 31 def @error_message end |
Instance Method Details
#success? ⇒ Boolean
37 38 39 |
# File 'lib/bizLogic/payment.rb', line 37 def success? @success end |