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

#href, #href=

Constructor Details

- (Bookmark) initialize(opts = {})

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.



23611
23612
23613
23614
23615
23616
23617
23618
# File 'lib/ovirtsdk4/types.rb', line 23611

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

Instance Method Details

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


23508
23509
23510
# File 'lib/ovirtsdk4/types.rb', line 23508

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


23517
23518
23519
# File 'lib/ovirtsdk4/types.rb', line 23517

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


23526
23527
23528
# File 'lib/ovirtsdk4/types.rb', line 23526

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


23535
23536
23537
# File 'lib/ovirtsdk4/types.rb', line 23535

def description=(value)
  @description = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


23544
23545
23546
# File 'lib/ovirtsdk4/types.rb', line 23544

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


23553
23554
23555
# File 'lib/ovirtsdk4/types.rb', line 23553

def id=(value)
  @id = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


23562
23563
23564
# File 'lib/ovirtsdk4/types.rb', line 23562

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


23571
23572
23573
# File 'lib/ovirtsdk4/types.rb', line 23571

def name=(value)
  @name = value
end

- (String) value

Returns the value of the value attribute.

Returns:

  • (String)


23580
23581
23582
# File 'lib/ovirtsdk4/types.rb', line 23580

def value
  return @value
end

- (Object) value=(value)

Sets the value of the value attribute.

Parameters:

  • value (String)


23589
23590
23591
# File 'lib/ovirtsdk4/types.rb', line 23589

def value=(value)
  @value = value
end