Class: OvirtSDK4::Method

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ Method

Creates a new instance of the OvirtSDK4::Method class.

Options Hash (opts):

  • :id (SsoMethod)

    The value of attribute id.



9259
9260
9261
9262
# File 'lib/ovirtsdk4/types.rb', line 9259

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.



9267
9268
9269
9270
# File 'lib/ovirtsdk4/types.rb', line 9267

def ==(other)
  super &&
  @id == other.id
end

#hashObject

Generates a hash value for this object.



9275
9276
9277
9278
# File 'lib/ovirtsdk4/types.rb', line 9275

def hash
  super +
  @id.hash
end

#idSsoMethod

Returns the value of the id attribute.



9236
9237
9238
# File 'lib/ovirtsdk4/types.rb', line 9236

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.



9245
9246
9247
# File 'lib/ovirtsdk4/types.rb', line 9245

def id=(value)
  @id = value
end