Class: OvirtSDK4::NetworkFilter
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::NetworkFilter
- 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 = {}) ⇒ NetworkFilter
constructor
Creates a new instance of the NetworkFilter class.
-
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#version ⇒ Version
Returns the value of the
versionattribute. -
#version=(value) ⇒ Object
Sets the value of the
versionattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ NetworkFilter
Creates a new instance of the OvirtSDK4::NetworkFilter class.
11709 11710 11711 11712 |
# File 'lib/ovirtsdk4/types.rb', line 11709 def initialize(opts = {}) super(opts) self.version = opts[:version] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
11717 11718 11719 11720 |
# File 'lib/ovirtsdk4/types.rb', line 11717 def ==(other) super && @version == other.version end |
#comment ⇒ String
Returns the value of the comment attribute.
11599 11600 11601 |
# File 'lib/ovirtsdk4/types.rb', line 11599 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
11608 11609 11610 |
# File 'lib/ovirtsdk4/types.rb', line 11608 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
11617 11618 11619 |
# File 'lib/ovirtsdk4/types.rb', line 11617 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
11626 11627 11628 |
# File 'lib/ovirtsdk4/types.rb', line 11626 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
11725 11726 11727 11728 |
# File 'lib/ovirtsdk4/types.rb', line 11725 def hash super + @version.hash end |
#id ⇒ String
Returns the value of the id attribute.
11635 11636 11637 |
# File 'lib/ovirtsdk4/types.rb', line 11635 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
11644 11645 11646 |
# File 'lib/ovirtsdk4/types.rb', line 11644 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name attribute.
11653 11654 11655 |
# File 'lib/ovirtsdk4/types.rb', line 11653 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
11662 11663 11664 |
# File 'lib/ovirtsdk4/types.rb', line 11662 def name=(value) @name = value end |
#version ⇒ Version
Returns the value of the version attribute.
11671 11672 11673 |
# File 'lib/ovirtsdk4/types.rb', line 11671 def version @version end |
#version=(value) ⇒ Object
Sets the value of the version attribute.
The value parameter can be an instance of Version 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.
11684 11685 11686 11687 11688 11689 |
# File 'lib/ovirtsdk4/types.rb', line 11684 def version=(value) if value.is_a?(Hash) value = Version.new(value) end @version = value end |