Class: OvirtSDK4::Product

Inherits:
Identified show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary collapse

Methods inherited from Identified

#==, #hash

Methods inherited from Struct

#==, #hash

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ Product

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



15414
15415
15416
# File 'lib/ovirtsdk4/types.rb', line 15414

def initialize(opts = {})
  super(opts)
end

Instance Method Details

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)


15331
15332
15333
# File 'lib/ovirtsdk4/types.rb', line 15331

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


15340
15341
15342
# File 'lib/ovirtsdk4/types.rb', line 15340

def comment=(value)
  @comment = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


15349
15350
15351
# File 'lib/ovirtsdk4/types.rb', line 15349

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


15358
15359
15360
# File 'lib/ovirtsdk4/types.rb', line 15358

def description=(value)
  @description = value
end

#idString

Returns the value of the id attribute.

Returns:

  • (String)


15367
15368
15369
# File 'lib/ovirtsdk4/types.rb', line 15367

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


15376
15377
15378
# File 'lib/ovirtsdk4/types.rb', line 15376

def id=(value)
  @id = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)


15385
15386
15387
# File 'lib/ovirtsdk4/types.rb', line 15385

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


15394
15395
15396
# File 'lib/ovirtsdk4/types.rb', line 15394

def name=(value)
  @name = value
end