Class: OvirtSDK4::TimeZone
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave 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
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#utc_offset ⇒ String
Returns the value of the
utc_offsetattribute. -
#utc_offset=(value) ⇒ Object
Sets the value of the
utc_offsetattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ TimeZone
Creates a new instance of the OvirtSDK4::TimeZone class.
23838 23839 23840 23841 23842 |
# File 'lib/ovirtsdk4/types.rb', line 23838 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.
23847 23848 23849 23850 23851 |
# File 'lib/ovirtsdk4/types.rb', line 23847 def ==(other) super && @name == other.name && @utc_offset == other.utc_offset end |
#hash ⇒ Object
Generates a hash value for this object.
23856 23857 23858 23859 23860 |
# File 'lib/ovirtsdk4/types.rb', line 23856 def hash super + @name.hash + @utc_offset.hash end |
#name ⇒ String
Returns the value of the name attribute.
23795 23796 23797 |
# File 'lib/ovirtsdk4/types.rb', line 23795 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
23804 23805 23806 |
# File 'lib/ovirtsdk4/types.rb', line 23804 def name=(value) @name = value end |
#utc_offset ⇒ String
Returns the value of the utc_offset attribute.
23813 23814 23815 |
# File 'lib/ovirtsdk4/types.rb', line 23813 def utc_offset @utc_offset end |
#utc_offset=(value) ⇒ Object
Sets the value of the utc_offset attribute.
23822 23823 23824 |
# File 'lib/ovirtsdk4/types.rb', line 23822 def utc_offset=(value) @utc_offset = value end |