Class: Notify::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/notify/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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

#adaptersObject (readonly)

Returns the value of attribute adapters.



6
7
8
# File 'lib/notify/config.rb', line 6

def adapters
  @adapters
end

#messagesObject (readonly)

Returns the value of attribute messages.



6
7
8
# File 'lib/notify/config.rb', line 6

def messages
  @messages
end

#templates_pathObject

Returns the value of attribute templates_path.



5
6
7
# File 'lib/notify/config.rb', line 5

def templates_path
  @templates_path
end