Class: OvirtSDK4::SerialNumber
- 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. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ SerialNumber
constructor
Creates a new instance of the SerialNumber class.
-
#policy ⇒ SerialNumberPolicy
Returns the value of the
policy
attribute. -
#policy=(value) ⇒ Object
Sets the value of the
policy
attribute. -
#value ⇒ String
Returns the value of the
value
attribute. -
#value=(value) ⇒ Object
Sets the value of the
value
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ SerialNumber
Creates a new instance of the OvirtSDK4::SerialNumber class.
18542 18543 18544 18545 18546 |
# File 'lib/ovirtsdk4/types.rb', line 18542 def initialize(opts = {}) super(opts) self.policy = opts[:policy] self.value = opts[:value] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
18551 18552 18553 18554 18555 |
# File 'lib/ovirtsdk4/types.rb', line 18551 def ==(other) super && @policy == other.policy && @value == other.value end |
#hash ⇒ Object
Generates a hash value for this object.
18560 18561 18562 18563 18564 |
# File 'lib/ovirtsdk4/types.rb', line 18560 def hash super + @policy.hash + @value.hash end |
#policy ⇒ SerialNumberPolicy
Returns the value of the policy
attribute.
18499 18500 18501 |
# File 'lib/ovirtsdk4/types.rb', line 18499 def policy @policy end |
#policy=(value) ⇒ Object
Sets the value of the policy
attribute.
18508 18509 18510 |
# File 'lib/ovirtsdk4/types.rb', line 18508 def policy=(value) @policy = value end |
#value ⇒ String
Returns the value of the value
attribute.
18517 18518 18519 |
# File 'lib/ovirtsdk4/types.rb', line 18517 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value
attribute.
18526 18527 18528 |
# File 'lib/ovirtsdk4/types.rb', line 18526 def value=(value) @value = value end |