Class: Exclusion
- Inherits:
-
Object
- Object
- Exclusion
- Defined in:
- lib/msdhcpdump/exclusion.rb
Instance Attribute Summary collapse
-
#endrange ⇒ Object
Returns the value of attribute endrange.
-
#startrange ⇒ Object
Returns the value of attribute startrange.
Instance Method Summary collapse
-
#initialize(range = []) ⇒ Exclusion
constructor
A new instance of Exclusion.
- #to_s ⇒ Object
Constructor Details
#initialize(range = []) ⇒ Exclusion
Returns a new instance of Exclusion.
3 4 5 6 |
# File 'lib/msdhcpdump/exclusion.rb', line 3 def initialize(range=[]) @startrange = range[0] @endrange = range[1] end |
Instance Attribute Details
#endrange ⇒ Object
Returns the value of attribute endrange.
2 3 4 |
# File 'lib/msdhcpdump/exclusion.rb', line 2 def endrange @endrange end |
#startrange ⇒ Object
Returns the value of attribute startrange.
2 3 4 |
# File 'lib/msdhcpdump/exclusion.rb', line 2 def startrange @startrange end |
Instance Method Details
#to_s ⇒ Object
7 8 9 |
# File 'lib/msdhcpdump/exclusion.rb', line 7 def to_s return "#{@startrange} - #{@endrange}\n" end |