Class: SlackMessaging::Config

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

Class Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, args = false) ⇒ Object (private)



33
34
35
# File 'lib/slack_messaging/config.rb', line 33

private def method_missing(method, args=false)
  config_data.send(method, args)
end

Class Method Details

.configObject



20
21
22
# File 'lib/slack_messaging/config.rb', line 20

def config
  config_data.to_hash
end

.load(path) ⇒ Object



24
25
26
27
# File 'lib/slack_messaging/config.rb', line 24

def load(path)
  load_config(path)
  config
end