Class: OvirtSDK4::Value

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

- (Value) initialize(opts = {})

Creates a new instance of the OvirtSDK4::Value 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):

  • :datum (Fixnum)

    The value of attribute datum.

  • :detail (String)

    The value of attribute detail.



17824
17825
17826
17827
17828
# File 'lib/ovirtsdk4/types.rb', line 17824

def initialize(opts = {})
  super(opts)
  self.datum = opts[:datum]
  self.detail = opts[:detail]
end

Instance Method Details

- (Fixnum) datum

Returns the value of the datum attribute.

Returns:

  • (Fixnum)


17781
17782
17783
# File 'lib/ovirtsdk4/types.rb', line 17781

def datum
  return @datum
end

- (Object) datum=(value)

Sets the value of the datum attribute.

Parameters:

  • value (Fixnum)


17790
17791
17792
# File 'lib/ovirtsdk4/types.rb', line 17790

def datum=(value)
  @datum = value
end

- (String) detail

Returns the value of the detail attribute.

Returns:

  • (String)


17799
17800
17801
# File 'lib/ovirtsdk4/types.rb', line 17799

def detail
  return @detail
end

- (Object) detail=(value)

Sets the value of the detail attribute.

Parameters:

  • value (String)


17808
17809
17810
# File 'lib/ovirtsdk4/types.rb', line 17808

def detail=(value)
  @detail = value
end