Class: OvirtSDK4::SerialNumber
- Inherits:
-
Struct
- Object
- Struct
- OvirtSDK4::SerialNumber
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (SerialNumber) initialize(opts = {})
constructor
Creates a new instance of the SerialNumber class.
-
- (SerialNumberPolicy) policy
Returns the value of the
policy
attribute. -
- (Object) policy=(value)
Sets the value of the
policy
attribute. -
- (String) value
Returns the value of the
value
attribute. -
- (Object) value=(value)
Sets the value of the
value
attribute.
Methods included from Type
Constructor Details
- (SerialNumber) initialize(opts = {})
Creates a new instance of the OvirtSDK4::SerialNumber class.
13671 13672 13673 13674 13675 |
# File 'lib/ovirtsdk4/types.rb', line 13671 def initialize(opts = {}) super(opts) self.policy = opts[:policy] self.value = opts[:value] end |
Instance Method Details
- (SerialNumberPolicy) policy
Returns the value of the policy
attribute.
13628 13629 13630 |
# File 'lib/ovirtsdk4/types.rb', line 13628 def policy return @policy end |
- (Object) policy=(value)
Sets the value of the policy
attribute.
13637 13638 13639 |
# File 'lib/ovirtsdk4/types.rb', line 13637 def policy=(value) @policy = value end |
- (String) value
Returns the value of the value
attribute.
13646 13647 13648 |
# File 'lib/ovirtsdk4/types.rb', line 13646 def value return @value end |
- (Object) value=(value)
Sets the value of the value
attribute.
13655 13656 13657 |
# File 'lib/ovirtsdk4/types.rb', line 13655 def value=(value) @value = value end |