Class: OvirtSDK4::Sso

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

- (Sso) initialize(opts = {})

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

  • :methods (Array<Method>, Array<Hash>)

    The values of attribute methods.



14507
14508
14509
14510
# File 'lib/ovirtsdk4/types.rb', line 14507

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

Instance Method Details

- (Array<Method>) methods

Returns the value of the methods attribute.

Returns:



14477
14478
14479
# File 'lib/ovirtsdk4/types.rb', line 14477

def methods
  return @methods
end

- (Object) methods=(list)

Sets the value of the methods attribute.

Parameters:



14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
# File 'lib/ovirtsdk4/types.rb', line 14485

def methods=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = Method.new(value)
      end
    end
  end
  @methods = list
end