Class: Construqt::Vlans::Vlan

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/construqt/vlans.rb

Instance Method Summary collapse

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

#taggedObject



19
20
21
22
# File 'lib/construqt/vlans.rb', line 19

def tagged
  @tagged=true
  self
end

#tagged?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/construqt/vlans.rb', line 15

def tagged?
  @tagged
end

#untaggedObject



28
29
30
31
# File 'lib/construqt/vlans.rb', line 28

def untagged
  @tagged = false
  self
end

#untagged?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/construqt/vlans.rb', line 24

def untagged?
  !@tagged
end