Class: OvirtSDK4::Bookmark

Inherits:
Identified 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 = {}) ⇒ Bookmark

Creates a new instance of the OvirtSDK4::Bookmark 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):

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :id (String)

    The value of attribute id.

  • :name (String)

    The value of attribute name.

  • :value (String)

    The value of attribute value.



30499
30500
30501
30502
# File 'lib/ovirtsdk4/types.rb', line 30499

def initialize(opts = {})
  super(opts)
  self.value = opts[:value]
end

Instance Method Details

#==(other) ⇒ Object

Returns true if self and other have the same attributes and values.



30507
30508
30509
30510
# File 'lib/ovirtsdk4/types.rb', line 30507

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

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)


30396
30397
30398
# File 'lib/ovirtsdk4/types.rb', line 30396

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


30405
30406
30407
# File 'lib/ovirtsdk4/types.rb', line 30405

def comment=(value)
  @comment = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


30414
30415
30416
# File 'lib/ovirtsdk4/types.rb', line 30414

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


30423
30424
30425
# File 'lib/ovirtsdk4/types.rb', line 30423

def description=(value)
  @description = value
end

#hashObject

Generates a hash value for this object.



30515
30516
30517
30518
# File 'lib/ovirtsdk4/types.rb', line 30515

def hash
  super +
  @value.hash
end

#idString

Returns the value of the id attribute.

Returns:

  • (String)


30432
30433
30434
# File 'lib/ovirtsdk4/types.rb', line 30432

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


30441
30442
30443
# File 'lib/ovirtsdk4/types.rb', line 30441

def id=(value)
  @id = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)


30450
30451
30452
# File 'lib/ovirtsdk4/types.rb', line 30450

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


30459
30460
30461
# File 'lib/ovirtsdk4/types.rb', line 30459

def name=(value)
  @name = value
end

#valueString

Returns the value of the value attribute.

Returns:

  • (String)


30468
30469
30470
# File 'lib/ovirtsdk4/types.rb', line 30468

def value
  @value
end

#value=(value) ⇒ Object

Sets the value of the value attribute.

Parameters:

  • value (String)


30477
30478
30479
# File 'lib/ovirtsdk4/types.rb', line 30477

def value=(value)
  @value = value
end