Class: OvirtSDK4::Sso
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have 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
methods
attribute. -
#methods=(list) ⇒ Object
Sets the value of the
methods
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Sso
Creates a new instance of the OvirtSDK4::Sso class.
19247 19248 19249 19250 |
# File 'lib/ovirtsdk4/types.rb', line 19247 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.
19255 19256 19257 19258 |
# File 'lib/ovirtsdk4/types.rb', line 19255 def ==(other) super && @methods == other.methods end |
#hash ⇒ Object
Generates a hash value for this object.
19263 19264 19265 19266 |
# File 'lib/ovirtsdk4/types.rb', line 19263 def hash super + @methods.hash end |
#methods ⇒ Array<Method>
Returns the value of the methods
attribute.
19216 19217 19218 |
# File 'lib/ovirtsdk4/types.rb', line 19216 def methods @methods end |
#methods=(list) ⇒ Object
Sets the value of the methods
attribute.
19225 19226 19227 19228 19229 19230 19231 19232 19233 19234 19235 |
# File 'lib/ovirtsdk4/types.rb', line 19225 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 |