Class: OvirtSDK4::Method
- 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.
-
#id ⇒ SsoMethod
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ Method
constructor
Creates a new instance of the Method class.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Method
Creates a new instance of the OvirtSDK4::Method class.
10075 10076 10077 10078 |
# File 'lib/ovirtsdk4/types.rb', line 10075 def initialize(opts = {}) super(opts) self.id = opts[:id] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
10083 10084 10085 10086 |
# File 'lib/ovirtsdk4/types.rb', line 10083 def ==(other) super && @id == other.id end |
#hash ⇒ Object
Generates a hash value for this object.
10091 10092 10093 10094 |
# File 'lib/ovirtsdk4/types.rb', line 10091 def hash super + @id.hash end |
#id ⇒ SsoMethod
Returns the value of the id attribute.
10052 10053 10054 |
# File 'lib/ovirtsdk4/types.rb', line 10052 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
10061 10062 10063 |
# File 'lib/ovirtsdk4/types.rb', line 10061 def id=(value) @id = value end |