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.
10650 10651 10652 10653 |
# File 'lib/ovirtsdk4/types.rb', line 10650 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.
10658 10659 10660 10661 |
# File 'lib/ovirtsdk4/types.rb', line 10658 def ==(other) super && @version == other.version end |
#comment ⇒ String
Returns the value of the comment
attribute.
10540 10541 10542 |
# File 'lib/ovirtsdk4/types.rb', line 10540 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
10549 10550 10551 |
# File 'lib/ovirtsdk4/types.rb', line 10549 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
10558 10559 10560 |
# File 'lib/ovirtsdk4/types.rb', line 10558 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
10567 10568 10569 |
# File 'lib/ovirtsdk4/types.rb', line 10567 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
10666 10667 10668 10669 |
# File 'lib/ovirtsdk4/types.rb', line 10666 def hash super + @version.hash end |
#id ⇒ String
Returns the value of the id
attribute.
10576 10577 10578 |
# File 'lib/ovirtsdk4/types.rb', line 10576 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
10585 10586 10587 |
# File 'lib/ovirtsdk4/types.rb', line 10585 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
10594 10595 10596 |
# File 'lib/ovirtsdk4/types.rb', line 10594 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
10603 10604 10605 |
# File 'lib/ovirtsdk4/types.rb', line 10603 def name=(value) @name = value end |
#version ⇒ Version
Returns the value of the version
attribute.
10612 10613 10614 |
# File 'lib/ovirtsdk4/types.rb', line 10612 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.
10625 10626 10627 10628 10629 10630 |
# File 'lib/ovirtsdk4/types.rb', line 10625 def version=(value) if value.is_a?(Hash) value = Version.new(value) end @version = value end |