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
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 = {}) ⇒ NetworkFilter
constructor
Creates a new instance of the NetworkFilter class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#version ⇒ Version
Returns the value of the
version
attribute. -
#version=(value) ⇒ Object
Sets the value of the
version
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ NetworkFilter
Creates a new instance of the OvirtSDK4::NetworkFilter class.
11462 11463 11464 11465 |
# File 'lib/ovirtsdk4/types.rb', line 11462 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.
11470 11471 11472 11473 |
# File 'lib/ovirtsdk4/types.rb', line 11470 def ==(other) super && @version == other.version end |
#comment ⇒ String
Returns the value of the comment
attribute.
11352 11353 11354 |
# File 'lib/ovirtsdk4/types.rb', line 11352 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
11361 11362 11363 |
# File 'lib/ovirtsdk4/types.rb', line 11361 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
11370 11371 11372 |
# File 'lib/ovirtsdk4/types.rb', line 11370 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
11379 11380 11381 |
# File 'lib/ovirtsdk4/types.rb', line 11379 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
11478 11479 11480 11481 |
# File 'lib/ovirtsdk4/types.rb', line 11478 def hash super + @version.hash end |
#id ⇒ String
Returns the value of the id
attribute.
11388 11389 11390 |
# File 'lib/ovirtsdk4/types.rb', line 11388 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
11397 11398 11399 |
# File 'lib/ovirtsdk4/types.rb', line 11397 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
11406 11407 11408 |
# File 'lib/ovirtsdk4/types.rb', line 11406 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
11415 11416 11417 |
# File 'lib/ovirtsdk4/types.rb', line 11415 def name=(value) @name = value end |
#version ⇒ Version
Returns the value of the version
attribute.
11424 11425 11426 |
# File 'lib/ovirtsdk4/types.rb', line 11424 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.
11437 11438 11439 11440 11441 11442 |
# File 'lib/ovirtsdk4/types.rb', line 11437 def version=(value) if value.is_a?(Hash) value = Version.new(value) end @version = value end |