Class: OvirtSDK4::Sso
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ Sso
constructor
Creates a new instance of the Sso class.
-
#methods ⇒ Array<Method>
Returns the value of the
methodsattribute. -
#methods=(list) ⇒ Object
Sets the value of the
methodsattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Sso
Creates a new instance of the OvirtSDK4::Sso class.
20542 20543 20544 20545 |
# File 'lib/ovirtsdk4/types.rb', line 20542 def initialize(opts = {}) super(opts) self.methods = opts[:methods] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
20550 20551 20552 20553 |
# File 'lib/ovirtsdk4/types.rb', line 20550 def ==(other) super && @methods == other.methods end |
#hash ⇒ Object
Generates a hash value for this object.
20558 20559 20560 20561 |
# File 'lib/ovirtsdk4/types.rb', line 20558 def hash super + @methods.hash end |
#methods ⇒ Array<Method>
Returns the value of the methods attribute.
20511 20512 20513 |
# File 'lib/ovirtsdk4/types.rb', line 20511 def methods @methods end |
#methods=(list) ⇒ Object
Sets the value of the methods attribute.
20520 20521 20522 20523 20524 20525 20526 20527 20528 20529 20530 |
# File 'lib/ovirtsdk4/types.rb', line 20520 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 |