Class: OvirtSDK4::EntityProfileDetail

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

Direct Known Subclasses

BrickProfileDetail, NfsProfileDetail

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (EntityProfileDetail) initialize(opts = {})

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

  • :profile_details (Array<ProfileDetail>, Array<Hash>)

    The values of attribute profile_details.



2559
2560
2561
2562
# File 'lib/ovirtsdk4/types.rb', line 2559

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

Instance Method Details

- (Array<ProfileDetail>) profile_details

Returns the value of the profile_details attribute.

Returns:



2529
2530
2531
# File 'lib/ovirtsdk4/types.rb', line 2529

def profile_details
  return @profile_details
end

- (Object) profile_details=(list)

Sets the value of the profile_details attribute.

Parameters:



2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
# File 'lib/ovirtsdk4/types.rb', line 2537

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