Class: Notify::Config
- Inherits:
-
Object
- Object
- Notify::Config
- Defined in:
- lib/notify/config.rb
Instance Attribute Summary collapse
-
#adapters ⇒ Object
readonly
Returns the value of attribute adapters.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
-
#templates_path ⇒ Object
Returns the value of attribute templates_path.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/notify/config.rb', line 8 def initialize @templates_path = "app/notify_templates" @adapters = { email: { enabled: true, from: nil, delivery_method: :deliver_later, default_recipients: [], layout: false, helpers: [], subject_prefix: nil }, telegram: { enabled: false, bots: [] } } @messages = {} end |
Instance Attribute Details
#adapters ⇒ Object (readonly)
Returns the value of attribute adapters.
6 7 8 |
# File 'lib/notify/config.rb', line 6 def adapters @adapters end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
6 7 8 |
# File 'lib/notify/config.rb', line 6 def @messages end |
#templates_path ⇒ Object
Returns the value of attribute templates_path.
5 6 7 |
# File 'lib/notify/config.rb', line 5 def templates_path @templates_path end |