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.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):

  • :id (SsoMethod)

    The value of attribute id.


9364
9365
9366
9367
# File 'lib/ovirtsdk4/types.rb', line 9364

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.


9372
9373
9374
9375
# File 'lib/ovirtsdk4/types.rb', line 9372

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

#hashObject

Generates a hash value for this object.


9380
9381
9382
9383
# File 'lib/ovirtsdk4/types.rb', line 9380

def hash
  super +
  @id.hash
end

#idSsoMethod

Returns the value of the id attribute.

Returns:


9341
9342
9343
# File 'lib/ovirtsdk4/types.rb', line 9341

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:


9350
9351
9352
# File 'lib/ovirtsdk4/types.rb', line 9350

def id=(value)
  @id = value
end