Class: Banker::Account
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#name ⇒ Object
Returns the value of attribute name.
-
#transactions ⇒ Object
Returns the value of attribute transactions.
-
#uid ⇒ Object
Returns the value of attribute uid.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Account
constructor
A new instance of Account.
Methods inherited from Base
#class_name, #cleaner, #get, #get_letter, #memorable_required, #params, #parse_ofx
Constructor Details
#initialize(args = {}) ⇒ Account
Returns a new instance of Account.
4 5 6 7 8 9 10 11 12 |
# File 'lib/banker/account.rb', line 4 def initialize(args = {}) @keys = %w(name uid amount) params(args) @transactions = [] args.each do |attribute, value| send(:"#{attribute}=", value) end end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
3 4 5 |
# File 'lib/banker/account.rb', line 3 def amount @amount end |
#currency ⇒ Object
Returns the value of attribute currency.
3 4 5 |
# File 'lib/banker/account.rb', line 3 def currency @currency end |
#limit ⇒ Object
Returns the value of attribute limit.
3 4 5 |
# File 'lib/banker/account.rb', line 3 def limit @limit end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/banker/account.rb', line 3 def name @name end |
#transactions ⇒ Object
Returns the value of attribute transactions.
3 4 5 |
# File 'lib/banker/account.rb', line 3 def transactions @transactions end |
#uid ⇒ Object
Returns the value of attribute uid.
3 4 5 |
# File 'lib/banker/account.rb', line 3 def uid @uid end |