Module: Idonethis::UseCases::List
- Defined in:
- lib/idonethis/use_cases/list.rb
Class Method Summary collapse
Class Method Details
.apply(credential, args = {}) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/idonethis/use_cases/list.rb', line 4 def apply(credential, args={}) log = args[:log] || fail("You need to supply :log adapter") view = args[:view] || fail("You need to supply :view adapter") list = get(credential, log, args).tap{|result| log.call(result)} view.call list end |