Class: OvirtSDK4::EntityProfileDetail
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ EntityProfileDetail
constructor
Creates a new instance of the EntityProfileDetail class.
-
#profile_details ⇒ Array<ProfileDetail>
Returns the value of the
profile_detailsattribute. -
#profile_details=(list) ⇒ Object
Sets the value of the
profile_detailsattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ EntityProfileDetail
Creates a new instance of the OvirtSDK4::EntityProfileDetail class.
3708 3709 3710 3711 |
# File 'lib/ovirtsdk4/types.rb', line 3708 def initialize(opts = {}) super(opts) self.profile_details = opts[:profile_details] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
3716 3717 3718 3719 |
# File 'lib/ovirtsdk4/types.rb', line 3716 def ==(other) super && @profile_details == other.profile_details end |
#hash ⇒ Object
Generates a hash value for this object.
3724 3725 3726 3727 |
# File 'lib/ovirtsdk4/types.rb', line 3724 def hash super + @profile_details.hash end |
#profile_details ⇒ Array<ProfileDetail>
Returns the value of the profile_details attribute.
3677 3678 3679 |
# File 'lib/ovirtsdk4/types.rb', line 3677 def profile_details @profile_details end |
#profile_details=(list) ⇒ Object
Sets the value of the profile_details attribute.
3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 |
# File 'lib/ovirtsdk4/types.rb', line 3686 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 |