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.
10813 10814 10815 10816 10817 |
# File 'lib/ovirtsdk4/types.rb', line 10813 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.
10822 10823 10824 10825 10826 |
# File 'lib/ovirtsdk4/types.rb', line 10822 def ==(other) super && @nic == other.nic && @value == other.value end |
#comment ⇒ String
Returns the value of the comment
attribute.
10683 10684 10685 |
# File 'lib/ovirtsdk4/types.rb', line 10683 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
10692 10693 10694 |
# File 'lib/ovirtsdk4/types.rb', line 10692 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
10701 10702 10703 |
# File 'lib/ovirtsdk4/types.rb', line 10701 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
10710 10711 10712 |
# File 'lib/ovirtsdk4/types.rb', line 10710 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
10831 10832 10833 10834 10835 |
# File 'lib/ovirtsdk4/types.rb', line 10831 def hash super + @nic.hash + @value.hash end |
#id ⇒ String
Returns the value of the id
attribute.
10719 10720 10721 |
# File 'lib/ovirtsdk4/types.rb', line 10719 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
10728 10729 10730 |
# File 'lib/ovirtsdk4/types.rb', line 10728 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
10737 10738 10739 |
# File 'lib/ovirtsdk4/types.rb', line 10737 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
10746 10747 10748 |
# File 'lib/ovirtsdk4/types.rb', line 10746 def name=(value) @name = value end |
#nic ⇒ Nic
Returns the value of the nic
attribute.
10755 10756 10757 |
# File 'lib/ovirtsdk4/types.rb', line 10755 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.
10768 10769 10770 10771 10772 10773 |
# File 'lib/ovirtsdk4/types.rb', line 10768 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.
10780 10781 10782 |
# File 'lib/ovirtsdk4/types.rb', line 10780 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value
attribute.
10789 10790 10791 |
# File 'lib/ovirtsdk4/types.rb', line 10789 def value=(value) @value = value end |