Class: OvirtSDK4::Certificate

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 = {}) ⇒ Certificate

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

  • :content (String)

    The value of attribute content.

  • :description (String)

    The value of attribute description.

  • :id (String)

    The value of attribute id.

  • :name (String)

    The value of attribute name.

  • :organization (String)

    The value of attribute organization.

  • :subject (String)

    The value of attribute subject.



31531
31532
31533
31534
31535
31536
# File 'lib/ovirtsdk4/types.rb', line 31531

def initialize(opts = {})
  super(opts)
  self.content = opts[:content]
  self.organization = opts[:organization]
  self.subject = opts[:subject]
end

Instance Method Details

#==(other) ⇒ Object

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



31541
31542
31543
31544
31545
31546
# File 'lib/ovirtsdk4/types.rb', line 31541

def ==(other)
  super &&
  @content == other.content &&
  @organization == other.organization &&
  @subject == other.subject
end

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)


31388
31389
31390
# File 'lib/ovirtsdk4/types.rb', line 31388

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


31397
31398
31399
# File 'lib/ovirtsdk4/types.rb', line 31397

def comment=(value)
  @comment = value
end

#contentString

Returns the value of the content attribute.

Returns:

  • (String)


31406
31407
31408
# File 'lib/ovirtsdk4/types.rb', line 31406

def content
  @content
end

#content=(value) ⇒ Object

Sets the value of the content attribute.

Parameters:

  • value (String)


31415
31416
31417
# File 'lib/ovirtsdk4/types.rb', line 31415

def content=(value)
  @content = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


31424
31425
31426
# File 'lib/ovirtsdk4/types.rb', line 31424

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


31433
31434
31435
# File 'lib/ovirtsdk4/types.rb', line 31433

def description=(value)
  @description = value
end

#hashObject

Generates a hash value for this object.



31551
31552
31553
31554
31555
31556
# File 'lib/ovirtsdk4/types.rb', line 31551

def hash
  super +
  @content.hash +
  @organization.hash +
  @subject.hash
end

#idString

Returns the value of the id attribute.

Returns:

  • (String)


31442
31443
31444
# File 'lib/ovirtsdk4/types.rb', line 31442

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


31451
31452
31453
# File 'lib/ovirtsdk4/types.rb', line 31451

def id=(value)
  @id = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)


31460
31461
31462
# File 'lib/ovirtsdk4/types.rb', line 31460

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


31469
31470
31471
# File 'lib/ovirtsdk4/types.rb', line 31469

def name=(value)
  @name = value
end

#organizationString

Returns the value of the organization attribute.

Returns:

  • (String)


31478
31479
31480
# File 'lib/ovirtsdk4/types.rb', line 31478

def organization
  @organization
end

#organization=(value) ⇒ Object

Sets the value of the organization attribute.

Parameters:

  • value (String)


31487
31488
31489
# File 'lib/ovirtsdk4/types.rb', line 31487

def organization=(value)
  @organization = value
end

#subjectString

Returns the value of the subject attribute.

Returns:

  • (String)


31496
31497
31498
# File 'lib/ovirtsdk4/types.rb', line 31496

def subject
  @subject
end

#subject=(value) ⇒ Object

Sets the value of the subject attribute.

Parameters:

  • value (String)


31505
31506
31507
# File 'lib/ovirtsdk4/types.rb', line 31505

def subject=(value)
  @subject = value
end