Class: OvirtSDK4::TimeZone

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (TimeZone) initialize(opts = {})

Creates a new instance of the OvirtSDK4::TimeZone class.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):

  • :name (String)

    The value of attribute name.

  • :utc_offset (String)

    The value of attribute utc_offset.



17058
17059
17060
17061
17062
# File 'lib/ovirtsdk4/types.rb', line 17058

def initialize(opts = {})
  super(opts)
  self.name = opts[:name]
  self.utc_offset = opts[:utc_offset]
end

Instance Method Details

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


17015
17016
17017
# File 'lib/ovirtsdk4/types.rb', line 17015

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


17024
17025
17026
# File 'lib/ovirtsdk4/types.rb', line 17024

def name=(value)
  @name = value
end

- (String) utc_offset

Returns the value of the utc_offset attribute.

Returns:

  • (String)


17033
17034
17035
# File 'lib/ovirtsdk4/types.rb', line 17033

def utc_offset
  return @utc_offset
end

- (Object) utc_offset=(value)

Sets the value of the utc_offset attribute.

Parameters:

  • value (String)


17042
17043
17044
# File 'lib/ovirtsdk4/types.rb', line 17042

def utc_offset=(value)
  @utc_offset = value
end