Class: OvirtSDK4::NetworkFilterParameter
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::NetworkFilterParameter
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ NetworkFilterParameter
constructor
Creates a new instance of the NetworkFilterParameter class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#nic ⇒ Nic
Returns the value of the
nic
attribute. -
#nic=(value) ⇒ Object
Sets the value of the
nic
attribute. -
#value ⇒ String
Returns the value of the
value
attribute. -
#value=(value) ⇒ Object
Sets the value of the
value
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ NetworkFilterParameter
Creates a new instance of the OvirtSDK4::NetworkFilterParameter class.
11622 11623 11624 11625 11626 |
# File 'lib/ovirtsdk4/types.rb', line 11622 def initialize(opts = {}) super(opts) self.nic = opts[:nic] self.value = opts[:value] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
11631 11632 11633 11634 11635 |
# File 'lib/ovirtsdk4/types.rb', line 11631 def ==(other) super && @nic == other.nic && @value == other.value end |
#comment ⇒ String
Returns the value of the comment
attribute.
11492 11493 11494 |
# File 'lib/ovirtsdk4/types.rb', line 11492 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
11501 11502 11503 |
# File 'lib/ovirtsdk4/types.rb', line 11501 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
11510 11511 11512 |
# File 'lib/ovirtsdk4/types.rb', line 11510 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
11519 11520 11521 |
# File 'lib/ovirtsdk4/types.rb', line 11519 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
11640 11641 11642 11643 11644 |
# File 'lib/ovirtsdk4/types.rb', line 11640 def hash super + @nic.hash + @value.hash end |
#id ⇒ String
Returns the value of the id
attribute.
11528 11529 11530 |
# File 'lib/ovirtsdk4/types.rb', line 11528 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
11537 11538 11539 |
# File 'lib/ovirtsdk4/types.rb', line 11537 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
11546 11547 11548 |
# File 'lib/ovirtsdk4/types.rb', line 11546 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
11555 11556 11557 |
# File 'lib/ovirtsdk4/types.rb', line 11555 def name=(value) @name = value end |
#nic ⇒ Nic
Returns the value of the nic
attribute.
11564 11565 11566 |
# File 'lib/ovirtsdk4/types.rb', line 11564 def nic @nic end |
#nic=(value) ⇒ Object
Sets the value of the nic
attribute.
The value
parameter can be an instance of OvirtSDK4::Nic or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
11577 11578 11579 11580 11581 11582 |
# File 'lib/ovirtsdk4/types.rb', line 11577 def nic=(value) if value.is_a?(Hash) value = Nic.new(value) end @nic = value end |
#value ⇒ String
Returns the value of the value
attribute.
11589 11590 11591 |
# File 'lib/ovirtsdk4/types.rb', line 11589 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value
attribute.
11598 11599 11600 |
# File 'lib/ovirtsdk4/types.rb', line 11598 def value=(value) @value = value end |