Class: OsCtld::Config::SendReceive

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cfg) ⇒ SendReceive

Returns a new instance of SendReceive.



65
66
67
68
69
70
# File 'lib/osctld/config.rb', line 65

def initialize(cfg)
  @send_mbuffer = Mbuffer.new(cfg.fetch('send_mbuffer', {
    'start_writing_at' => 5
  }))
  @receive_mbuffer = Mbuffer.new(cfg.fetch('receive_mbuffer', {}))
end

Instance Attribute Details

#receive_mbufferMbuffer (readonly)

Returns:



63
64
65
# File 'lib/osctld/config.rb', line 63

def receive_mbuffer
  @receive_mbuffer
end

#send_mbufferMbuffer (readonly)

Returns:



60
61
62
# File 'lib/osctld/config.rb', line 60

def send_mbuffer
  @send_mbuffer
end