Class: OvirtSDK4::Method
- 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.
-
#id ⇒ SsoMethod
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#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.
9828 9829 9830 9831 |
# File 'lib/ovirtsdk4/types.rb', line 9828 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.
9836 9837 9838 9839 |
# File 'lib/ovirtsdk4/types.rb', line 9836 def ==(other) super && @id == other.id end |
#hash ⇒ Object
Generates a hash value for this object.
9844 9845 9846 9847 |
# File 'lib/ovirtsdk4/types.rb', line 9844 def hash super + @id.hash end |
#id ⇒ SsoMethod
Returns the value of the id
attribute.
9805 9806 9807 |
# File 'lib/ovirtsdk4/types.rb', line 9805 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
9814 9815 9816 |
# File 'lib/ovirtsdk4/types.rb', line 9814 def id=(value) @id = value end |