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.
11012 11013 11014 11015 |
# File 'lib/ovirtsdk4/types.rb', line 11012 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.
11020 11021 11022 11023 |
# File 'lib/ovirtsdk4/types.rb', line 11020 def ==(other) super && @version == other.version end |
#comment ⇒ String
Returns the value of the comment
attribute.
10902 10903 10904 |
# File 'lib/ovirtsdk4/types.rb', line 10902 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
10911 10912 10913 |
# File 'lib/ovirtsdk4/types.rb', line 10911 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
10920 10921 10922 |
# File 'lib/ovirtsdk4/types.rb', line 10920 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
10929 10930 10931 |
# File 'lib/ovirtsdk4/types.rb', line 10929 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
11028 11029 11030 11031 |
# File 'lib/ovirtsdk4/types.rb', line 11028 def hash super + @version.hash end |
#id ⇒ String
Returns the value of the id
attribute.
10938 10939 10940 |
# File 'lib/ovirtsdk4/types.rb', line 10938 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
10947 10948 10949 |
# File 'lib/ovirtsdk4/types.rb', line 10947 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
10956 10957 10958 |
# File 'lib/ovirtsdk4/types.rb', line 10956 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
10965 10966 10967 |
# File 'lib/ovirtsdk4/types.rb', line 10965 def name=(value) @name = value end |
#version ⇒ Version
Returns the value of the version
attribute.
10974 10975 10976 |
# File 'lib/ovirtsdk4/types.rb', line 10974 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.
10987 10988 10989 10990 10991 10992 |
# File 'lib/ovirtsdk4/types.rb', line 10987 def version=(value) if value.is_a?(Hash) value = Version.new(value) end @version = value end |