Class: Construqt::Vlans::Vlan
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Construqt::Vlans::Vlan
- Defined in:
- lib/construqt/vlans.rb
Instance Method Summary collapse
-
#initialize(cfg) ⇒ Vlan
constructor
A new instance of Vlan.
- #nountagged ⇒ Object
- #nountagged? ⇒ Boolean
- #tagged ⇒ Object
- #tagged? ⇒ Boolean
- #untagged ⇒ Object
- #untagged? ⇒ Boolean
Constructor Details
#initialize(cfg) ⇒ Vlan
Returns a new instance of Vlan.
11 12 13 |
# File 'lib/construqt/vlans.rb', line 11 def initialize(cfg) super(cfg) end |
Instance Method Details
#nountagged ⇒ Object
39 40 41 42 |
# File 'lib/construqt/vlans.rb', line 39 def nountagged @nountagged=true self end |
#nountagged? ⇒ Boolean
35 36 37 |
# File 'lib/construqt/vlans.rb', line 35 def nountagged? @nountagged end |
#tagged ⇒ Object
19 20 21 22 23 |
# File 'lib/construqt/vlans.rb', line 19 def tagged @tagged=true @nountagged=false self end |
#tagged? ⇒ Boolean
15 16 17 |
# File 'lib/construqt/vlans.rb', line 15 def tagged? !@nountagged && @tagged end |
#untagged ⇒ Object
29 30 31 32 33 |
# File 'lib/construqt/vlans.rb', line 29 def untagged @tagged = false @nountagged=false self end |
#untagged? ⇒ Boolean
25 26 27 |
# File 'lib/construqt/vlans.rb', line 25 def untagged? !@nountagged && !@tagged end |