Class: Smshelper::Config

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

Instance Method Summary collapse

Constructor Details

#initialize(interfaces = {}) ⇒ Config

Returns a new instance of Config.



4
5
6
7
8
9
10
# File 'lib/smshelper/config.rb', line 4

def initialize(interfaces = {})
  interfaces.each do |interface, config|
    self.class.send(:define_method, interface) do
      config
    end
  end
end