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.
- #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
#tagged ⇒ Object
19 20 21 22 |
# File 'lib/construqt/vlans.rb', line 19 def tagged @tagged=true self end |
#tagged? ⇒ Boolean
15 16 17 |
# File 'lib/construqt/vlans.rb', line 15 def tagged? @tagged end |
#untagged ⇒ Object
28 29 30 31 |
# File 'lib/construqt/vlans.rb', line 28 def untagged @tagged = false self end |
#untagged? ⇒ Boolean
24 25 26 |
# File 'lib/construqt/vlans.rb', line 24 def untagged? !@tagged end |