Class: Volksbanker::AmexLineItem
- Inherits:
-
Object
- Object
- Volksbanker::AmexLineItem
- Defined in:
- lib/volksbanker/amex_line_item.rb
Constant Summary collapse
- DATE_FORMAT =
'%d/%m/%Y'
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
Instance Method Summary collapse
- #date ⇒ Object
-
#initialize(date, amount, description) ⇒ AmexLineItem
constructor
A new instance of AmexLineItem.
Constructor Details
#initialize(date, amount, description) ⇒ AmexLineItem
Returns a new instance of AmexLineItem.
8 9 10 11 12 |
# File 'lib/volksbanker/amex_line_item.rb', line 8 def initialize(date, amount, description) @date = date @amount = amount @description = description end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
6 7 8 |
# File 'lib/volksbanker/amex_line_item.rb', line 6 def amount @amount end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
6 7 8 |
# File 'lib/volksbanker/amex_line_item.rb', line 6 def description @description end |
Instance Method Details
#date ⇒ Object
14 15 16 |
# File 'lib/volksbanker/amex_line_item.rb', line 14 def date @date.strftime DATE_FORMAT end |