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.


32434
32435
32436
32437
32438
32439
# File 'lib/ovirtsdk4/types.rb', line 32434

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.


32444
32445
32446
32447
32448
32449
# File 'lib/ovirtsdk4/types.rb', line 32444

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

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)

32291
32292
32293
# File 'lib/ovirtsdk4/types.rb', line 32291

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)

32300
32301
32302
# File 'lib/ovirtsdk4/types.rb', line 32300

def comment=(value)
  @comment = value
end

#contentString

Returns the value of the content attribute.

Returns:

  • (String)

32309
32310
32311
# File 'lib/ovirtsdk4/types.rb', line 32309

def content
  @content
end

#content=(value) ⇒ Object

Sets the value of the content attribute.

Parameters:

  • value (String)

32318
32319
32320
# File 'lib/ovirtsdk4/types.rb', line 32318

def content=(value)
  @content = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)

32327
32328
32329
# File 'lib/ovirtsdk4/types.rb', line 32327

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)

32336
32337
32338
# File 'lib/ovirtsdk4/types.rb', line 32336

def description=(value)
  @description = value
end

#hashObject

Generates a hash value for this object.


32454
32455
32456
32457
32458
32459
# File 'lib/ovirtsdk4/types.rb', line 32454

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

#idString

Returns the value of the id attribute.

Returns:

  • (String)

32345
32346
32347
# File 'lib/ovirtsdk4/types.rb', line 32345

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)

32354
32355
32356
# File 'lib/ovirtsdk4/types.rb', line 32354

def id=(value)
  @id = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)

32363
32364
32365
# File 'lib/ovirtsdk4/types.rb', line 32363

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)

32372
32373
32374
# File 'lib/ovirtsdk4/types.rb', line 32372

def name=(value)
  @name = value
end

#organizationString

Returns the value of the organization attribute.

Returns:

  • (String)

32381
32382
32383
# File 'lib/ovirtsdk4/types.rb', line 32381

def organization
  @organization
end

#organization=(value) ⇒ Object

Sets the value of the organization attribute.

Parameters:

  • value (String)

32390
32391
32392
# File 'lib/ovirtsdk4/types.rb', line 32390

def organization=(value)
  @organization = value
end

#subjectString

Returns the value of the subject attribute.

Returns:

  • (String)

32399
32400
32401
# File 'lib/ovirtsdk4/types.rb', line 32399

def subject
  @subject
end

#subject=(value) ⇒ Object

Sets the value of the subject attribute.

Parameters:

  • value (String)

32408
32409
32410
# File 'lib/ovirtsdk4/types.rb', line 32408

def subject=(value)
  @subject = value
end