Class: BlueBank::AccountList
- Inherits:
-
Object
- Object
- BlueBank::AccountList
- Includes:
- Enumerable
- Defined in:
- lib/blue_bank/account_list.rb
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(customer:, client:) ⇒ AccountList
constructor
A new instance of AccountList.
Constructor Details
#initialize(customer:, client:) ⇒ AccountList
Returns a new instance of AccountList.
5 6 7 |
# File 'lib/blue_bank/account_list.rb', line 5 def initialize(customer:, client:) @customer, @client = customer, client end |
Instance Method Details
#each(&block) ⇒ Object
9 10 11 |
# File 'lib/blue_bank/account_list.rb', line 9 def each(&block) account_objects.each(&block) end |