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.
10938 10939 10940 10941 10942 |
# File 'lib/ovirtsdk4/types.rb', line 10938 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.
10947 10948 10949 10950 10951 |
# File 'lib/ovirtsdk4/types.rb', line 10947 def ==(other) super && @nic == other.nic && @value == other.value end |
#comment ⇒ String
Returns the value of the comment
attribute.
10808 10809 10810 |
# File 'lib/ovirtsdk4/types.rb', line 10808 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
10817 10818 10819 |
# File 'lib/ovirtsdk4/types.rb', line 10817 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
10826 10827 10828 |
# File 'lib/ovirtsdk4/types.rb', line 10826 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
10835 10836 10837 |
# File 'lib/ovirtsdk4/types.rb', line 10835 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
10956 10957 10958 10959 10960 |
# File 'lib/ovirtsdk4/types.rb', line 10956 def hash super + @nic.hash + @value.hash end |
#id ⇒ String
Returns the value of the id
attribute.
10844 10845 10846 |
# File 'lib/ovirtsdk4/types.rb', line 10844 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
10853 10854 10855 |
# File 'lib/ovirtsdk4/types.rb', line 10853 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
10862 10863 10864 |
# File 'lib/ovirtsdk4/types.rb', line 10862 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
10871 10872 10873 |
# File 'lib/ovirtsdk4/types.rb', line 10871 def name=(value) @name = value end |
#nic ⇒ Nic
Returns the value of the nic
attribute.
10880 10881 10882 |
# File 'lib/ovirtsdk4/types.rb', line 10880 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.
10893 10894 10895 10896 10897 10898 |
# File 'lib/ovirtsdk4/types.rb', line 10893 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.
10905 10906 10907 |
# File 'lib/ovirtsdk4/types.rb', line 10905 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value
attribute.
10914 10915 10916 |
# File 'lib/ovirtsdk4/types.rb', line 10914 def value=(value) @value = value end |