Class: Mayaml::MuttAccountInit::Presenter

Inherits:
Object
  • Object
show all
Includes:
Mainapp::Component
Defined in:
lib/mayaml/mutt_account_init/presenter.rb

Instance Method Summary collapse

Instance Method Details

#for_render(data) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/mayaml/mutt_account_init/presenter.rb', line 11

def for_render(data)
  {
    name: name(data),
    accounts_path: accounts_path(data),
    clean_name: clean_name(data)
  }
end