Class: App42::Shopping::Payment
- Inherits:
-
Object
- Object
- App42::Shopping::Payment
- Defined in:
- lib/shopping/Cart.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#status ⇒ Object
Returns the value of attribute status.
-
#totalAmount ⇒ Object
Returns the value of attribute totalAmount.
-
#transactionId ⇒ Object
Returns the value of attribute transactionId.
Instance Method Summary collapse
-
#initialize(cart) ⇒ Payment
constructor
This is a constructor that takes no parameter.
Constructor Details
#initialize(cart) ⇒ Payment
This is a constructor that takes no parameter
72 73 74 |
# File 'lib/shopping/Cart.rb', line 72 def initialize(cart) cart.payment = self end |
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
61 62 63 |
# File 'lib/shopping/Cart.rb', line 61 def date @date end |
#status ⇒ Object
Returns the value of attribute status.
61 62 63 |
# File 'lib/shopping/Cart.rb', line 61 def status @status end |
#totalAmount ⇒ Object
Returns the value of attribute totalAmount.
61 62 63 |
# File 'lib/shopping/Cart.rb', line 61 def totalAmount @totalAmount end |
#transactionId ⇒ Object
Returns the value of attribute transactionId.
61 62 63 |
# File 'lib/shopping/Cart.rb', line 61 def transactionId @transactionId end |