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.
18440 18441 18442 18443 18444 |
# File 'lib/ovirtsdk4/types.rb', line 18440 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.
18449 18450 18451 18452 18453 |
# File 'lib/ovirtsdk4/types.rb', line 18449 def ==(other) super && @policy == other.policy && @value == other.value end |
#hash ⇒ Object
Generates a hash value for this object.
18458 18459 18460 18461 18462 |
# File 'lib/ovirtsdk4/types.rb', line 18458 def hash super + @policy.hash + @value.hash end |
#policy ⇒ SerialNumberPolicy
Returns the value of the policy
attribute.
18397 18398 18399 |
# File 'lib/ovirtsdk4/types.rb', line 18397 def policy @policy end |
#policy=(value) ⇒ Object
Sets the value of the policy
attribute.
18406 18407 18408 |
# File 'lib/ovirtsdk4/types.rb', line 18406 def policy=(value) @policy = value end |
#value ⇒ String
Returns the value of the value
attribute.
18415 18416 18417 |
# File 'lib/ovirtsdk4/types.rb', line 18415 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value
attribute.
18424 18425 18426 |
# File 'lib/ovirtsdk4/types.rb', line 18424 def value=(value) @value = value end |