Class: App42::Shopping::Payment

Inherits:
Object
  • Object
show all
Defined in:
lib/shopping/Cart.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dateObject

Returns the value of attribute date.



61
62
63
# File 'lib/shopping/Cart.rb', line 61

def date
  @date
end

#statusObject

Returns the value of attribute status.



61
62
63
# File 'lib/shopping/Cart.rb', line 61

def status
  @status
end

#totalAmountObject

Returns the value of attribute totalAmount.



61
62
63
# File 'lib/shopping/Cart.rb', line 61

def totalAmount
  @totalAmount
end

#transactionIdObject

Returns the value of attribute transactionId.



61
62
63
# File 'lib/shopping/Cart.rb', line 61

def transactionId
  @transactionId
end