Class: OvirtSDK4::TimeZone
- 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 = {}) ⇒ TimeZone
constructor
Creates a new instance of the TimeZone class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#utc_offset ⇒ String
Returns the value of the
utc_offset
attribute. -
#utc_offset=(value) ⇒ Object
Sets the value of the
utc_offset
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ TimeZone
Creates a new instance of the OvirtSDK4::TimeZone class.
22660 22661 22662 22663 22664 |
# File 'lib/ovirtsdk4/types.rb', line 22660 def initialize(opts = {}) super(opts) self.name = opts[:name] self.utc_offset = opts[:utc_offset] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
22669 22670 22671 22672 22673 |
# File 'lib/ovirtsdk4/types.rb', line 22669 def ==(other) super && @name == other.name && @utc_offset == other.utc_offset end |
#hash ⇒ Object
Generates a hash value for this object.
22678 22679 22680 22681 22682 |
# File 'lib/ovirtsdk4/types.rb', line 22678 def hash super + @name.hash + @utc_offset.hash end |
#name ⇒ String
Returns the value of the name
attribute.
22617 22618 22619 |
# File 'lib/ovirtsdk4/types.rb', line 22617 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
22626 22627 22628 |
# File 'lib/ovirtsdk4/types.rb', line 22626 def name=(value) @name = value end |
#utc_offset ⇒ String
Returns the value of the utc_offset
attribute.
22635 22636 22637 |
# File 'lib/ovirtsdk4/types.rb', line 22635 def utc_offset @utc_offset end |
#utc_offset=(value) ⇒ Object
Sets the value of the utc_offset
attribute.
22644 22645 22646 |
# File 'lib/ovirtsdk4/types.rb', line 22644 def utc_offset=(value) @utc_offset = value end |