Class: ZMQMachine::Device::Configuration

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

Instance Method Summary collapse

Constructor Details

#initialize(&blk) ⇒ Configuration

Returns a new instance of Configuration.



11
12
13
14
15
16
17
18
19
# File 'lib/zm/device/configuration.rb', line 11

def initialize(&blk)
  instance_eval(&blk) if block_given?

  # set defaults
  self.verbose ||= false
  self.hwm ||= 1
  self.linger ||= 0
  self.topic ||= ''
end