Class: Mayaml::MuttAccountCreds::Presenter
- Inherits:
-
Object
- Object
- Mayaml::MuttAccountCreds::Presenter
show all
- Includes:
- Mainapp::Component
- Defined in:
- lib/mayaml/mutt_account_creds/presenter.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(key, *args) ⇒ Object
20
21
22
|
# File 'lib/mayaml/mutt_account_creds/presenter.rb', line 20
def method_missing(key, *args)
args.dig 0, key
end
|
Instance Method Details
#for_render(data) ⇒ Object
11
12
13
14
15
16
|
# File 'lib/mayaml/mutt_account_creds/presenter.rb', line 11
def for_render(data)
%i[realname name smtp_authenticator smtp_protocol smtp_server smtp_port
user pass].inject({}) do |result, key|
result.merge key => send(key, data)
end
end
|