Class: OvirtSDK4::KatelloErratum
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::KatelloErratum
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host ⇒ Host
Returns the value of the
hostattribute. -
#host=(value) ⇒ Object
Sets the value of the
hostattribute. -
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ KatelloErratum
constructor
Creates a new instance of the KatelloErratum class.
-
#issued ⇒ DateTime
Returns the value of the
issuedattribute. -
#issued=(value) ⇒ Object
Sets the value of the
issuedattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#packages ⇒ Array<Package>
Returns the value of the
packagesattribute. -
#packages=(list) ⇒ Object
Sets the value of the
packagesattribute. -
#severity ⇒ String
Returns the value of the
severityattribute. -
#severity=(value) ⇒ Object
Sets the value of the
severityattribute. -
#solution ⇒ String
Returns the value of the
solutionattribute. -
#solution=(value) ⇒ Object
Sets the value of the
solutionattribute. -
#summary ⇒ String
Returns the value of the
summaryattribute. -
#summary=(value) ⇒ Object
Sets the value of the
summaryattribute. -
#title ⇒ String
Returns the value of the
titleattribute. -
#title=(value) ⇒ Object
Sets the value of the
titleattribute. -
#type ⇒ String
Returns the value of the
typeattribute. -
#type=(value) ⇒ Object
Sets the value of the
typeattribute. -
#vm ⇒ Vm
Returns the value of the
vmattribute. -
#vm=(value) ⇒ Object
Sets the value of the
vmattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ KatelloErratum
Creates a new instance of the OvirtSDK4::KatelloErratum class.
7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 |
# File 'lib/ovirtsdk4/types.rb', line 7792 def initialize(opts = {}) super(opts) self.host = opts[:host] self.issued = opts[:issued] self.packages = opts[:packages] self.severity = opts[:severity] self.solution = opts[:solution] self.summary = opts[:summary] self.title = opts[:title] self.type = opts[:type] self.vm = opts[:vm] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 |
# File 'lib/ovirtsdk4/types.rb', line 7808 def ==(other) super && @host == other.host && @issued == other.issued && @packages == other.packages && @severity == other.severity && @solution == other.solution && @summary == other.summary && @title == other.title && @type == other.type && @vm == other.vm end |
#comment ⇒ String
Returns the value of the comment attribute.
7507 7508 7509 |
# File 'lib/ovirtsdk4/types.rb', line 7507 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
7516 7517 7518 |
# File 'lib/ovirtsdk4/types.rb', line 7516 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
7525 7526 7527 |
# File 'lib/ovirtsdk4/types.rb', line 7525 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
7534 7535 7536 |
# File 'lib/ovirtsdk4/types.rb', line 7534 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 |
# File 'lib/ovirtsdk4/types.rb', line 7824 def hash super + @host.hash + @issued.hash + @packages.hash + @severity.hash + @solution.hash + @summary.hash + @title.hash + @type.hash + @vm.hash end |
#host ⇒ Host
Returns the value of the host attribute.
7543 7544 7545 |
# File 'lib/ovirtsdk4/types.rb', line 7543 def host @host end |
#host=(value) ⇒ Object
Sets the value of the host attribute.
The value parameter can be an instance of Host or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
7556 7557 7558 7559 7560 7561 |
# File 'lib/ovirtsdk4/types.rb', line 7556 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end |
#id ⇒ String
Returns the value of the id attribute.
7568 7569 7570 |
# File 'lib/ovirtsdk4/types.rb', line 7568 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
7577 7578 7579 |
# File 'lib/ovirtsdk4/types.rb', line 7577 def id=(value) @id = value end |
#issued ⇒ DateTime
Returns the value of the issued attribute.
7586 7587 7588 |
# File 'lib/ovirtsdk4/types.rb', line 7586 def issued @issued end |
#issued=(value) ⇒ Object
Sets the value of the issued attribute.
7595 7596 7597 |
# File 'lib/ovirtsdk4/types.rb', line 7595 def issued=(value) @issued = value end |
#name ⇒ String
Returns the value of the name attribute.
7604 7605 7606 |
# File 'lib/ovirtsdk4/types.rb', line 7604 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
7613 7614 7615 |
# File 'lib/ovirtsdk4/types.rb', line 7613 def name=(value) @name = value end |
#packages ⇒ Array<Package>
Returns the value of the packages attribute.
7622 7623 7624 |
# File 'lib/ovirtsdk4/types.rb', line 7622 def packages @packages end |
#packages=(list) ⇒ Object
Sets the value of the packages attribute.
7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 |
# File 'lib/ovirtsdk4/types.rb', line 7631 def packages=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Package.new(value) end end end @packages = list end |
#severity ⇒ String
Returns the value of the severity attribute.
7648 7649 7650 |
# File 'lib/ovirtsdk4/types.rb', line 7648 def severity @severity end |
#severity=(value) ⇒ Object
Sets the value of the severity attribute.
7657 7658 7659 |
# File 'lib/ovirtsdk4/types.rb', line 7657 def severity=(value) @severity = value end |
#solution ⇒ String
Returns the value of the solution attribute.
7666 7667 7668 |
# File 'lib/ovirtsdk4/types.rb', line 7666 def solution @solution end |
#solution=(value) ⇒ Object
Sets the value of the solution attribute.
7675 7676 7677 |
# File 'lib/ovirtsdk4/types.rb', line 7675 def solution=(value) @solution = value end |
#summary ⇒ String
Returns the value of the summary attribute.
7684 7685 7686 |
# File 'lib/ovirtsdk4/types.rb', line 7684 def summary @summary end |
#summary=(value) ⇒ Object
Sets the value of the summary attribute.
7693 7694 7695 |
# File 'lib/ovirtsdk4/types.rb', line 7693 def summary=(value) @summary = value end |
#title ⇒ String
Returns the value of the title attribute.
7702 7703 7704 |
# File 'lib/ovirtsdk4/types.rb', line 7702 def title @title end |
#title=(value) ⇒ Object
Sets the value of the title attribute.
7711 7712 7713 |
# File 'lib/ovirtsdk4/types.rb', line 7711 def title=(value) @title = value end |
#type ⇒ String
Returns the value of the type attribute.
7720 7721 7722 |
# File 'lib/ovirtsdk4/types.rb', line 7720 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type attribute.
7729 7730 7731 |
# File 'lib/ovirtsdk4/types.rb', line 7729 def type=(value) @type = value end |
#vm ⇒ Vm
Returns the value of the vm attribute.
7738 7739 7740 |
# File 'lib/ovirtsdk4/types.rb', line 7738 def vm @vm end |
#vm=(value) ⇒ Object
Sets the value of the vm attribute.
The value parameter can be an instance of Vm or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
7751 7752 7753 7754 7755 7756 |
# File 'lib/ovirtsdk4/types.rb', line 7751 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |