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.
19272 19273 19274 19275 19276 |
# File 'lib/ovirtsdk4/types.rb', line 19272 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.
19281 19282 19283 19284 19285 |
# File 'lib/ovirtsdk4/types.rb', line 19281 def ==(other) super && @policy == other.policy && @value == other.value end |
#hash ⇒ Object
Generates a hash value for this object.
19290 19291 19292 19293 19294 |
# File 'lib/ovirtsdk4/types.rb', line 19290 def hash super + @policy.hash + @value.hash end |
#policy ⇒ SerialNumberPolicy
Returns the value of the policy
attribute.
19229 19230 19231 |
# File 'lib/ovirtsdk4/types.rb', line 19229 def policy @policy end |
#policy=(value) ⇒ Object
Sets the value of the policy
attribute.
19238 19239 19240 |
# File 'lib/ovirtsdk4/types.rb', line 19238 def policy=(value) @policy = value end |
#value ⇒ String
Returns the value of the value
attribute.
19247 19248 19249 |
# File 'lib/ovirtsdk4/types.rb', line 19247 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value
attribute.
19256 19257 19258 |
# File 'lib/ovirtsdk4/types.rb', line 19256 def value=(value) @value = value end |