Class: Pio::OpenFlow13::Meter
- Inherits:
-
Pio::OpenFlow::Instruction
- Object
- Pio::OpenFlow::Instruction
- Pio::OpenFlow13::Meter
- Extended by:
- Forwardable
- Defined in:
- lib/pio/open_flow13/meter.rb
Overview
Apply meter (rate limiter)
Defined Under Namespace
Classes: Format
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(meter_id) ⇒ Meter
constructor
A new instance of Meter.
Constructor Details
Class Method Details
.read(raw_data) ⇒ Object
20 21 22 23 24 |
# File 'lib/pio/open_flow13/meter.rb', line 20 def self.read(raw_data) allocate.tap do |meter| meter.instance_variable_set :@format, Format.read(raw_data) end end |