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.



33490
33491
33492
33493
33494
33495
# File 'lib/ovirtsdk4/types.rb', line 33490

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.



33500
33501
33502
33503
33504
33505
# File 'lib/ovirtsdk4/types.rb', line 33500

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

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)


33347
33348
33349
# File 'lib/ovirtsdk4/types.rb', line 33347

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


33356
33357
33358
# File 'lib/ovirtsdk4/types.rb', line 33356

def comment=(value)
  @comment = value
end

#contentString

Returns the value of the content attribute.

Returns:

  • (String)


33365
33366
33367
# File 'lib/ovirtsdk4/types.rb', line 33365

def content
  @content
end

#content=(value) ⇒ Object

Sets the value of the content attribute.

Parameters:

  • value (String)


33374
33375
33376
# File 'lib/ovirtsdk4/types.rb', line 33374

def content=(value)
  @content = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


33383
33384
33385
# File 'lib/ovirtsdk4/types.rb', line 33383

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


33392
33393
33394
# File 'lib/ovirtsdk4/types.rb', line 33392

def description=(value)
  @description = value
end

#hashObject

Generates a hash value for this object.



33510
33511
33512
33513
33514
33515
# File 'lib/ovirtsdk4/types.rb', line 33510

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

#idString

Returns the value of the id attribute.

Returns:

  • (String)


33401
33402
33403
# File 'lib/ovirtsdk4/types.rb', line 33401

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


33410
33411
33412
# File 'lib/ovirtsdk4/types.rb', line 33410

def id=(value)
  @id = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)


33419
33420
33421
# File 'lib/ovirtsdk4/types.rb', line 33419

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


33428
33429
33430
# File 'lib/ovirtsdk4/types.rb', line 33428

def name=(value)
  @name = value
end

#organizationString

Returns the value of the organization attribute.

Returns:

  • (String)


33437
33438
33439
# File 'lib/ovirtsdk4/types.rb', line 33437

def organization
  @organization
end

#organization=(value) ⇒ Object

Sets the value of the organization attribute.

Parameters:

  • value (String)


33446
33447
33448
# File 'lib/ovirtsdk4/types.rb', line 33446

def organization=(value)
  @organization = value
end

#subjectString

Returns the value of the subject attribute.

Returns:

  • (String)


33455
33456
33457
# File 'lib/ovirtsdk4/types.rb', line 33455

def subject
  @subject
end

#subject=(value) ⇒ Object

Sets the value of the subject attribute.

Parameters:

  • value (String)


33464
33465
33466
# File 'lib/ovirtsdk4/types.rb', line 33464

def subject=(value)
  @subject = value
end