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.



30975
30976
30977
30978
30979
30980
# File 'lib/ovirtsdk4/types.rb', line 30975

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.



30985
30986
30987
30988
30989
30990
# File 'lib/ovirtsdk4/types.rb', line 30985

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

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)


30832
30833
30834
# File 'lib/ovirtsdk4/types.rb', line 30832

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


30841
30842
30843
# File 'lib/ovirtsdk4/types.rb', line 30841

def comment=(value)
  @comment = value
end

#contentString

Returns the value of the content attribute.

Returns:

  • (String)


30850
30851
30852
# File 'lib/ovirtsdk4/types.rb', line 30850

def content
  @content
end

#content=(value) ⇒ Object

Sets the value of the content attribute.

Parameters:

  • value (String)


30859
30860
30861
# File 'lib/ovirtsdk4/types.rb', line 30859

def content=(value)
  @content = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


30868
30869
30870
# File 'lib/ovirtsdk4/types.rb', line 30868

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


30877
30878
30879
# File 'lib/ovirtsdk4/types.rb', line 30877

def description=(value)
  @description = value
end

#hashObject

Generates a hash value for this object.



30995
30996
30997
30998
30999
31000
# File 'lib/ovirtsdk4/types.rb', line 30995

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

#idString

Returns the value of the id attribute.

Returns:

  • (String)


30886
30887
30888
# File 'lib/ovirtsdk4/types.rb', line 30886

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


30895
30896
30897
# File 'lib/ovirtsdk4/types.rb', line 30895

def id=(value)
  @id = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)


30904
30905
30906
# File 'lib/ovirtsdk4/types.rb', line 30904

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


30913
30914
30915
# File 'lib/ovirtsdk4/types.rb', line 30913

def name=(value)
  @name = value
end

#organizationString

Returns the value of the organization attribute.

Returns:

  • (String)


30922
30923
30924
# File 'lib/ovirtsdk4/types.rb', line 30922

def organization
  @organization
end

#organization=(value) ⇒ Object

Sets the value of the organization attribute.

Parameters:

  • value (String)


30931
30932
30933
# File 'lib/ovirtsdk4/types.rb', line 30931

def organization=(value)
  @organization = value
end

#subjectString

Returns the value of the subject attribute.

Returns:

  • (String)


30940
30941
30942
# File 'lib/ovirtsdk4/types.rb', line 30940

def subject
  @subject
end

#subject=(value) ⇒ Object

Sets the value of the subject attribute.

Parameters:

  • value (String)


30949
30950
30951
# File 'lib/ovirtsdk4/types.rb', line 30949

def subject=(value)
  @subject = value
end