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.
7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 |
# File 'lib/ovirtsdk4/types.rb', line 7952 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.
7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 |
# File 'lib/ovirtsdk4/types.rb', line 7968 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.
7667 7668 7669 |
# File 'lib/ovirtsdk4/types.rb', line 7667 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
7676 7677 7678 |
# File 'lib/ovirtsdk4/types.rb', line 7676 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
7685 7686 7687 |
# File 'lib/ovirtsdk4/types.rb', line 7685 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
7694 7695 7696 |
# File 'lib/ovirtsdk4/types.rb', line 7694 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 |
# File 'lib/ovirtsdk4/types.rb', line 7984 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.
7703 7704 7705 |
# File 'lib/ovirtsdk4/types.rb', line 7703 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.
7716 7717 7718 7719 7720 7721 |
# File 'lib/ovirtsdk4/types.rb', line 7716 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.
7728 7729 7730 |
# File 'lib/ovirtsdk4/types.rb', line 7728 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
7737 7738 7739 |
# File 'lib/ovirtsdk4/types.rb', line 7737 def id=(value) @id = value end |
#issued ⇒ DateTime
Returns the value of the issued
attribute.
7746 7747 7748 |
# File 'lib/ovirtsdk4/types.rb', line 7746 def issued @issued end |
#issued=(value) ⇒ Object
Sets the value of the issued
attribute.
7755 7756 7757 |
# File 'lib/ovirtsdk4/types.rb', line 7755 def issued=(value) @issued = value end |
#name ⇒ String
Returns the value of the name
attribute.
7764 7765 7766 |
# File 'lib/ovirtsdk4/types.rb', line 7764 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
7773 7774 7775 |
# File 'lib/ovirtsdk4/types.rb', line 7773 def name=(value) @name = value end |
#packages ⇒ Array<Package>
Returns the value of the packages
attribute.
7782 7783 7784 |
# File 'lib/ovirtsdk4/types.rb', line 7782 def packages @packages end |
#packages=(list) ⇒ Object
Sets the value of the packages
attribute.
7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 |
# File 'lib/ovirtsdk4/types.rb', line 7791 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.
7808 7809 7810 |
# File 'lib/ovirtsdk4/types.rb', line 7808 def severity @severity end |
#severity=(value) ⇒ Object
Sets the value of the severity
attribute.
7817 7818 7819 |
# File 'lib/ovirtsdk4/types.rb', line 7817 def severity=(value) @severity = value end |
#solution ⇒ String
Returns the value of the solution
attribute.
7826 7827 7828 |
# File 'lib/ovirtsdk4/types.rb', line 7826 def solution @solution end |
#solution=(value) ⇒ Object
Sets the value of the solution
attribute.
7835 7836 7837 |
# File 'lib/ovirtsdk4/types.rb', line 7835 def solution=(value) @solution = value end |
#summary ⇒ String
Returns the value of the summary
attribute.
7844 7845 7846 |
# File 'lib/ovirtsdk4/types.rb', line 7844 def summary @summary end |
#summary=(value) ⇒ Object
Sets the value of the summary
attribute.
7853 7854 7855 |
# File 'lib/ovirtsdk4/types.rb', line 7853 def summary=(value) @summary = value end |
#title ⇒ String
Returns the value of the title
attribute.
7862 7863 7864 |
# File 'lib/ovirtsdk4/types.rb', line 7862 def title @title end |
#title=(value) ⇒ Object
Sets the value of the title
attribute.
7871 7872 7873 |
# File 'lib/ovirtsdk4/types.rb', line 7871 def title=(value) @title = value end |
#type ⇒ String
Returns the value of the type
attribute.
7880 7881 7882 |
# File 'lib/ovirtsdk4/types.rb', line 7880 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
7889 7890 7891 |
# File 'lib/ovirtsdk4/types.rb', line 7889 def type=(value) @type = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
7898 7899 7900 |
# File 'lib/ovirtsdk4/types.rb', line 7898 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.
7911 7912 7913 7914 7915 7916 |
# File 'lib/ovirtsdk4/types.rb', line 7911 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |