Class: OvirtSDK4::EntityProfileDetail
- Inherits:
-
Struct
- Object
- Struct
- OvirtSDK4::EntityProfileDetail
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Direct Known Subclasses
Instance Method Summary (collapse)
-
- (EntityProfileDetail) initialize(opts = {})
constructor
Creates a new instance of the EntityProfileDetail class.
-
- (Array<ProfileDetail>) profile_details
Returns the value of the
profile_details
attribute. -
- (Object) profile_details=(list)
Sets the value of the
profile_details
attribute.
Methods included from Type
Constructor Details
- (EntityProfileDetail) initialize(opts = {})
Creates a new instance of the OvirtSDK4::EntityProfileDetail class.
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.
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.
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 |