Class: Slack::Mailer::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/slack_mailer/configuration.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



7
8
9
10
11
12
# File 'lib/slack_mailer/configuration.rb', line 7

def initialize
  @templates_path = nil
  @templates_type = nil
  @erb_in_templates = false
  @slack_hook_urls = nil
end

Instance Attribute Details

#erb_in_templatesObject

Returns the value of attribute erb_in_templates.



5
6
7
# File 'lib/slack_mailer/configuration.rb', line 5

def erb_in_templates
  @erb_in_templates
end

#slack_hook_urlsObject

Returns the value of attribute slack_hook_urls.



5
6
7
# File 'lib/slack_mailer/configuration.rb', line 5

def slack_hook_urls
  @slack_hook_urls
end

#templates_pathObject

Returns the value of attribute templates_path.



5
6
7
# File 'lib/slack_mailer/configuration.rb', line 5

def templates_path
  @templates_path
end

#templates_typeObject

Returns the value of attribute templates_type.



5
6
7
# File 'lib/slack_mailer/configuration.rb', line 5

def templates_type
  @templates_type
end

Class Method Details

.configObject



14
15
16
# File 'lib/slack_mailer/configuration.rb', line 14

def self.config
  @configuration ||= Slack::Mailer::Configuration.new
end

.configure {|config| ... } ⇒ Object

Yields:



22
23
24
# File 'lib/slack_mailer/configuration.rb', line 22

def self.configure
  yield(config)
end

.resetObject



18
19
20
# File 'lib/slack_mailer/configuration.rb', line 18

def self.reset
  @configuration = Slack::Mailer::Configuration.new
end