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
true
ifself
andother
have the same attributes and values. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host ⇒ Host
Returns the value of the
host
attribute. -
#host=(value) ⇒ Object
Sets the value of the
host
attribute. -
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ KatelloErratum
constructor
Creates a new instance of the KatelloErratum class.
-
#issued ⇒ DateTime
Returns the value of the
issued
attribute. -
#issued=(value) ⇒ Object
Sets the value of the
issued
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#packages ⇒ Array<Package>
Returns the value of the
packages
attribute. -
#packages=(list) ⇒ Object
Sets the value of the
packages
attribute. -
#severity ⇒ String
Returns the value of the
severity
attribute. -
#severity=(value) ⇒ Object
Sets the value of the
severity
attribute. -
#solution ⇒ String
Returns the value of the
solution
attribute. -
#solution=(value) ⇒ Object
Sets the value of the
solution
attribute. -
#summary ⇒ String
Returns the value of the
summary
attribute. -
#summary=(value) ⇒ Object
Sets the value of the
summary
attribute. -
#title ⇒ String
Returns the value of the
title
attribute. -
#title=(value) ⇒ Object
Sets the value of the
title
attribute. -
#type ⇒ String
Returns the value of the
type
attribute. -
#type=(value) ⇒ Object
Sets the value of the
type
attribute. -
#vm ⇒ Vm
Returns the value of the
vm
attribute. -
#vm=(value) ⇒ Object
Sets the value of the
vm
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ KatelloErratum
Creates a new instance of the OvirtSDK4::KatelloErratum class.
7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 |
# File 'lib/ovirtsdk4/types.rb', line 7815 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.
7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 |
# File 'lib/ovirtsdk4/types.rb', line 7831 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.
7530 7531 7532 |
# File 'lib/ovirtsdk4/types.rb', line 7530 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
7539 7540 7541 |
# File 'lib/ovirtsdk4/types.rb', line 7539 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
7548 7549 7550 |
# File 'lib/ovirtsdk4/types.rb', line 7548 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
7557 7558 7559 |
# File 'lib/ovirtsdk4/types.rb', line 7557 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 |
# File 'lib/ovirtsdk4/types.rb', line 7847 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.
7566 7567 7568 |
# File 'lib/ovirtsdk4/types.rb', line 7566 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.
7579 7580 7581 7582 7583 7584 |
# File 'lib/ovirtsdk4/types.rb', line 7579 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.
7591 7592 7593 |
# File 'lib/ovirtsdk4/types.rb', line 7591 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
7600 7601 7602 |
# File 'lib/ovirtsdk4/types.rb', line 7600 def id=(value) @id = value end |
#issued ⇒ DateTime
Returns the value of the issued
attribute.
7609 7610 7611 |
# File 'lib/ovirtsdk4/types.rb', line 7609 def issued @issued end |
#issued=(value) ⇒ Object
Sets the value of the issued
attribute.
7618 7619 7620 |
# File 'lib/ovirtsdk4/types.rb', line 7618 def issued=(value) @issued = value end |
#name ⇒ String
Returns the value of the name
attribute.
7627 7628 7629 |
# File 'lib/ovirtsdk4/types.rb', line 7627 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
7636 7637 7638 |
# File 'lib/ovirtsdk4/types.rb', line 7636 def name=(value) @name = value end |
#packages ⇒ Array<Package>
Returns the value of the packages
attribute.
7645 7646 7647 |
# File 'lib/ovirtsdk4/types.rb', line 7645 def packages @packages end |
#packages=(list) ⇒ Object
Sets the value of the packages
attribute.
7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 |
# File 'lib/ovirtsdk4/types.rb', line 7654 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.
7671 7672 7673 |
# File 'lib/ovirtsdk4/types.rb', line 7671 def severity @severity end |
#severity=(value) ⇒ Object
Sets the value of the severity
attribute.
7680 7681 7682 |
# File 'lib/ovirtsdk4/types.rb', line 7680 def severity=(value) @severity = value end |
#solution ⇒ String
Returns the value of the solution
attribute.
7689 7690 7691 |
# File 'lib/ovirtsdk4/types.rb', line 7689 def solution @solution end |
#solution=(value) ⇒ Object
Sets the value of the solution
attribute.
7698 7699 7700 |
# File 'lib/ovirtsdk4/types.rb', line 7698 def solution=(value) @solution = value end |
#summary ⇒ String
Returns the value of the summary
attribute.
7707 7708 7709 |
# File 'lib/ovirtsdk4/types.rb', line 7707 def summary @summary end |
#summary=(value) ⇒ Object
Sets the value of the summary
attribute.
7716 7717 7718 |
# File 'lib/ovirtsdk4/types.rb', line 7716 def summary=(value) @summary = value end |
#title ⇒ String
Returns the value of the title
attribute.
7725 7726 7727 |
# File 'lib/ovirtsdk4/types.rb', line 7725 def title @title end |
#title=(value) ⇒ Object
Sets the value of the title
attribute.
7734 7735 7736 |
# File 'lib/ovirtsdk4/types.rb', line 7734 def title=(value) @title = value end |
#type ⇒ String
Returns the value of the type
attribute.
7743 7744 7745 |
# File 'lib/ovirtsdk4/types.rb', line 7743 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
7752 7753 7754 |
# File 'lib/ovirtsdk4/types.rb', line 7752 def type=(value) @type = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
7761 7762 7763 |
# File 'lib/ovirtsdk4/types.rb', line 7761 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.
7774 7775 7776 7777 7778 7779 |
# File 'lib/ovirtsdk4/types.rb', line 7774 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |