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.
23095 23096 23097 23098 23099 |
# File 'lib/ovirtsdk4/types.rb', line 23095 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.
23104 23105 23106 23107 23108 |
# File 'lib/ovirtsdk4/types.rb', line 23104 def ==(other) super && @name == other.name && @utc_offset == other.utc_offset end |
#hash ⇒ Object
Generates a hash value for this object.
23113 23114 23115 23116 23117 |
# File 'lib/ovirtsdk4/types.rb', line 23113 def hash super + @name.hash + @utc_offset.hash end |
#name ⇒ String
Returns the value of the name
attribute.
23052 23053 23054 |
# File 'lib/ovirtsdk4/types.rb', line 23052 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
23061 23062 23063 |
# File 'lib/ovirtsdk4/types.rb', line 23061 def name=(value) @name = value end |
#utc_offset ⇒ String
Returns the value of the utc_offset
attribute.
23070 23071 23072 |
# File 'lib/ovirtsdk4/types.rb', line 23070 def utc_offset @utc_offset end |
#utc_offset=(value) ⇒ Object
Sets the value of the utc_offset
attribute.
23079 23080 23081 |
# File 'lib/ovirtsdk4/types.rb', line 23079 def utc_offset=(value) @utc_offset = value end |