Class: Msdhcpdump
- Inherits:
-
Hash
- Object
- Hash
- Msdhcpdump
- Defined in:
- lib/msdhcpdump.rb
Instance Method Summary collapse
- #add(matchobj) ⇒ Object
- #getscopes ⇒ Object
-
#initialize(dhcpdump) ⇒ Msdhcpdump
constructor
A new instance of Msdhcpdump.
- #list ⇒ Object
Constructor Details
#initialize(dhcpdump) ⇒ Msdhcpdump
Returns a new instance of Msdhcpdump.
8 9 10 11 12 |
# File 'lib/msdhcpdump.rb', line 8 def initialize(dhcpdump) super() @debug=false processdump(dhcpdump) end |
Instance Method Details
#add(matchobj) ⇒ Object
13 14 15 16 |
# File 'lib/msdhcpdump.rb', line 13 def add(matchobj) newscope = Scope.new(matchobj) self[newscope.net] = newscope end |
#getscopes ⇒ Object
22 23 24 |
# File 'lib/msdhcpdump.rb', line 22 def getscopes self.values end |
#list ⇒ Object
18 19 20 |
# File 'lib/msdhcpdump.rb', line 18 def list self.keys end |