Class: OvirtSDK4::NetworkFilter
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::NetworkFilter
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (String) comment
Returns the value of the
comment
attribute. -
- (Object) comment=(value)
Sets the value of the
comment
attribute. -
- (String) description
Returns the value of the
description
attribute. -
- (Object) description=(value)
Sets the value of the
description
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (NetworkFilter) initialize(opts = {})
constructor
Creates a new instance of the NetworkFilter class.
-
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (Version) version
Returns the value of the
version
attribute. -
- (Object) version=(value)
Sets the value of the
version
attribute.
Methods included from Type
Constructor Details
- (NetworkFilter) initialize(opts = {})
Creates a new instance of the OvirtSDK4::NetworkFilter class.
7788 7789 7790 7791 7792 7793 7794 7795 |
# File 'lib/ovirtsdk4/types.rb', line 7788 def initialize(opts = {}) super(opts) self.comment = opts[:comment] self.description = opts[:description] self.id = opts[:id] self.name = opts[:name] self.version = opts[:version] end |
Instance Method Details
- (String) comment
Returns the value of the comment
attribute.
7678 7679 7680 |
# File 'lib/ovirtsdk4/types.rb', line 7678 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
7687 7688 7689 |
# File 'lib/ovirtsdk4/types.rb', line 7687 def comment=(value) @comment = value end |
- (String) description
Returns the value of the description
attribute.
7696 7697 7698 |
# File 'lib/ovirtsdk4/types.rb', line 7696 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
7705 7706 7707 |
# File 'lib/ovirtsdk4/types.rb', line 7705 def description=(value) @description = value end |
- (String) id
Returns the value of the id
attribute.
7714 7715 7716 |
# File 'lib/ovirtsdk4/types.rb', line 7714 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
7723 7724 7725 |
# File 'lib/ovirtsdk4/types.rb', line 7723 def id=(value) @id = value end |
- (String) name
Returns the value of the name
attribute.
7732 7733 7734 |
# File 'lib/ovirtsdk4/types.rb', line 7732 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
7741 7742 7743 |
# File 'lib/ovirtsdk4/types.rb', line 7741 def name=(value) @name = value end |
- (Version) version
Returns the value of the version
attribute.
7750 7751 7752 |
# File 'lib/ovirtsdk4/types.rb', line 7750 def version return @version end |
- (Object) version=(value)
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.
7763 7764 7765 7766 7767 7768 |
# File 'lib/ovirtsdk4/types.rb', line 7763 def version=(value) if value.is_a?(Hash) value = Version.new(value) end @version = value end |