Class: PacketGen::Header::OSPFv3::ArrayOfLSA
- Inherits:
-
Types::Array
- Object
- Types::Array
- PacketGen::Header::OSPFv3::ArrayOfLSA
- Defined in:
- lib/packetgen/header/ospfv3/lsa.rb
Overview
This class defines a specialized array to handle series of LSAs or LSAHeaders. It recognizes known LSA types and infers correct type.
Constant Summary
Constants inherited from Types::Array
Constants included from Types::LengthFrom
Types::LengthFrom::MAX_SZ_TO_READ
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ArrayOfLSA
constructor
A new instance of ArrayOfLSA.
Methods inherited from Types::Array
#<<, #==, #[], #clear, #clear!, #delete, #delete_at, #each, #empty?, #first, #initialize_copy, #last, #push, #read, set_of, set_of_klass, #size, #sz, #to_a, #to_human, #to_s
Methods included from Types::LengthFrom
#initialize_length_from, #read_with_length_from, #sz_to_read
Methods included from Types::Fieldable
#format_inspect, #read, #sz, #to_human, #to_s, #type_name
Constructor Details
#initialize(options = {}) ⇒ ArrayOfLSA
Returns a new instance of ArrayOfLSA.
195 196 197 198 |
# File 'lib/packetgen/header/ospfv3/lsa.rb', line 195 def initialize(={}) super @only_headers = [:only_headers] || false end |