Class: Xen::Bridge
- Inherits:
-
Object
- Object
- Xen::Bridge
- Defined in:
- lib/xen/host.rb
Instance Attribute Summary collapse
-
#antispoof ⇒ Object
Returns the value of attribute antispoof.
-
#bridge ⇒ Object
Returns the value of attribute bridge.
-
#netdev ⇒ Object
Returns the value of attribute netdev.
-
#vifnum ⇒ Object
Returns the value of attribute vifnum.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Bridge
constructor
A new instance of Bridge.
Constructor Details
#initialize(*args) ⇒ Bridge
Returns a new instance of Bridge.
55 56 57 58 59 60 61 |
# File 'lib/xen/host.rb', line 55 def initialize(*args) = args. @netdev = [:netdev] @bridge = [:bridge] @vifnum = [:vifnum] @antispoof = [:antispoof] end |
Instance Attribute Details
#antispoof ⇒ Object
Returns the value of attribute antispoof.
53 54 55 |
# File 'lib/xen/host.rb', line 53 def antispoof @antispoof end |
#bridge ⇒ Object
Returns the value of attribute bridge.
53 54 55 |
# File 'lib/xen/host.rb', line 53 def bridge @bridge end |
#netdev ⇒ Object
Returns the value of attribute netdev.
53 54 55 |
# File 'lib/xen/host.rb', line 53 def netdev @netdev end |
#vifnum ⇒ Object
Returns the value of attribute vifnum.
53 54 55 |
# File 'lib/xen/host.rb', line 53 def vifnum @vifnum end |