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
trueifselfandotherhave the same attributes and values. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ NetworkFilterParameter
constructor
Creates a new instance of the NetworkFilterParameter class.
-
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#nic ⇒ Nic
Returns the value of the
nicattribute. -
#nic=(value) ⇒ Object
Sets the value of the
nicattribute. -
#value ⇒ String
Returns the value of the
valueattribute. -
#value=(value) ⇒ Object
Sets the value of the
valueattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ NetworkFilterParameter
Creates a new instance of the OvirtSDK4::NetworkFilterParameter class.
11869 11870 11871 11872 11873 |
# File 'lib/ovirtsdk4/types.rb', line 11869 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.
11878 11879 11880 11881 11882 |
# File 'lib/ovirtsdk4/types.rb', line 11878 def ==(other) super && @nic == other.nic && @value == other.value end |
#comment ⇒ String
Returns the value of the comment attribute.
11739 11740 11741 |
# File 'lib/ovirtsdk4/types.rb', line 11739 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
11748 11749 11750 |
# File 'lib/ovirtsdk4/types.rb', line 11748 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
11757 11758 11759 |
# File 'lib/ovirtsdk4/types.rb', line 11757 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
11766 11767 11768 |
# File 'lib/ovirtsdk4/types.rb', line 11766 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
11887 11888 11889 11890 11891 |
# File 'lib/ovirtsdk4/types.rb', line 11887 def hash super + @nic.hash + @value.hash end |
#id ⇒ String
Returns the value of the id attribute.
11775 11776 11777 |
# File 'lib/ovirtsdk4/types.rb', line 11775 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
11784 11785 11786 |
# File 'lib/ovirtsdk4/types.rb', line 11784 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name attribute.
11793 11794 11795 |
# File 'lib/ovirtsdk4/types.rb', line 11793 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
11802 11803 11804 |
# File 'lib/ovirtsdk4/types.rb', line 11802 def name=(value) @name = value end |
#nic ⇒ Nic
Returns the value of the nic attribute.
11811 11812 11813 |
# File 'lib/ovirtsdk4/types.rb', line 11811 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.
11824 11825 11826 11827 11828 11829 |
# File 'lib/ovirtsdk4/types.rb', line 11824 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.
11836 11837 11838 |
# File 'lib/ovirtsdk4/types.rb', line 11836 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value attribute.
11845 11846 11847 |
# File 'lib/ovirtsdk4/types.rb', line 11845 def value=(value) @value = value end |