class BeanSprout::Sprout

Entry is made up of the following fields:

  1. The account owns the entry, the currency of which is defined as the local

currency;

  1. The amount to be added to the account balance, in local currency;

  2. Other arbitrary data.

Attributes

amount[R]
bean[R]
id[R]

Public Class Methods

new(id, bean, amount) click to toggle source
# File lib/bean_sprout/entry.rb, line 17
def initialize id, bean, amount
  @id = id
  @bean = bean
  @amount = amount.to_d
end