Class: Mundipagg::ShoppingCartItem

Inherits:
Object
  • Object
show all
Defined in:
lib/mundipagg/ShoppingCartItem.rb

Instance Attribute Summary collapse

Instance Attribute Details

#descriptionstring

Returns Item description

Returns:

  • (string)

    Item description


8
9
10
# File 'lib/mundipagg/ShoppingCartItem.rb', line 8

def description
  @description
end

#itemReferencestring

Returns Item identifier

Returns:

  • (string)

    Item identifier


5
6
7
# File 'lib/mundipagg/ShoppingCartItem.rb', line 5

def itemReference
  @itemReference
end

#namestring

Returns Item name

Returns:

  • (string)

    Item name


11
12
13
# File 'lib/mundipagg/ShoppingCartItem.rb', line 11

def name
  @name
end

#quantityInteger

Returns Quantity of itens

Returns:

  • (Integer)

    Quantity of itens


14
15
16
# File 'lib/mundipagg/ShoppingCartItem.rb', line 14

def quantity
  @quantity
end

#totalCostInCentslong

Returns Total in cents of all itens

Returns:

  • (long)

    Total in cents of all itens


17
18
19
# File 'lib/mundipagg/ShoppingCartItem.rb', line 17

def totalCostInCents
  @totalCostInCents
end

#unitCostInCentslong

Returns Item cost in cents

Returns:

  • (long)

    Item cost in cents


20
21
22
# File 'lib/mundipagg/ShoppingCartItem.rb', line 20

def unitCostInCents
  @unitCostInCents
end