Class: Pio::OpenFlow10::Stats::Reply
- Inherits:
-
Pio::OpenFlow::Message
- Object
- Pio::OpenFlow::Message
- Pio::OpenFlow10::Stats::Reply
- Defined in:
- lib/pio/open_flow10/stats_reply.rb
Overview
Stats reply parser.
Constant Summary collapse
- TYPE =
{ description: OpenFlow10::DescriptionStats::Reply, flow: OpenFlow10::FlowStats::Reply, aggregate: OpenFlow10::AggregateStats::Reply }.freeze
Instance Attribute Summary
Attributes inherited from Pio::OpenFlow::Message
Class Method Summary collapse
Methods inherited from Pio::OpenFlow::Message
#initialize, method_missing, #method_missing, open_flow_header, #to_binary
Methods included from Pio::OpenFlow::Flags
#_define_flags, #_flags, #define_flags_32bit, #flags_16bit, #flags_32bit
Constructor Details
This class inherits a constructor from Pio::OpenFlow::Message
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Pio::OpenFlow::Message
Class Method Details
.read(binary) ⇒ Object
22 23 24 25 26 |
# File 'lib/pio/open_flow10/stats_reply.rb', line 22 def self.read(binary) TYPE.fetch(Format.read(binary).stats_type.to_sym).read(binary) rescue KeyError raise "Unknown stats type: #{stats_type}" end |