Class: OsCtld::Config::SendReceive
- Inherits:
-
Object
- Object
- OsCtld::Config::SendReceive
- Defined in:
- lib/osctld/config.rb
Instance Attribute Summary collapse
- #receive_mbuffer ⇒ Mbuffer readonly
- #send_mbuffer ⇒ Mbuffer readonly
Instance Method Summary collapse
-
#initialize(cfg) ⇒ SendReceive
constructor
A new instance of SendReceive.
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 |