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.
8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 |
# File 'lib/ovirtsdk4/types.rb', line 8333 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.
8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 |
# File 'lib/ovirtsdk4/types.rb', line 8349 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.
8048 8049 8050 |
# File 'lib/ovirtsdk4/types.rb', line 8048 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
8057 8058 8059 |
# File 'lib/ovirtsdk4/types.rb', line 8057 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
8066 8067 8068 |
# File 'lib/ovirtsdk4/types.rb', line 8066 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
8075 8076 8077 |
# File 'lib/ovirtsdk4/types.rb', line 8075 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 |
# File 'lib/ovirtsdk4/types.rb', line 8365 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.
8084 8085 8086 |
# File 'lib/ovirtsdk4/types.rb', line 8084 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.
8097 8098 8099 8100 8101 8102 |
# File 'lib/ovirtsdk4/types.rb', line 8097 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.
8109 8110 8111 |
# File 'lib/ovirtsdk4/types.rb', line 8109 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
8118 8119 8120 |
# File 'lib/ovirtsdk4/types.rb', line 8118 def id=(value) @id = value end |
#issued ⇒ DateTime
Returns the value of the issued
attribute.
8127 8128 8129 |
# File 'lib/ovirtsdk4/types.rb', line 8127 def issued @issued end |
#issued=(value) ⇒ Object
Sets the value of the issued
attribute.
8136 8137 8138 |
# File 'lib/ovirtsdk4/types.rb', line 8136 def issued=(value) @issued = value end |
#name ⇒ String
Returns the value of the name
attribute.
8145 8146 8147 |
# File 'lib/ovirtsdk4/types.rb', line 8145 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
8154 8155 8156 |
# File 'lib/ovirtsdk4/types.rb', line 8154 def name=(value) @name = value end |
#packages ⇒ Array<Package>
Returns the value of the packages
attribute.
8163 8164 8165 |
# File 'lib/ovirtsdk4/types.rb', line 8163 def packages @packages end |
#packages=(list) ⇒ Object
Sets the value of the packages
attribute.
8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 |
# File 'lib/ovirtsdk4/types.rb', line 8172 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.
8189 8190 8191 |
# File 'lib/ovirtsdk4/types.rb', line 8189 def severity @severity end |
#severity=(value) ⇒ Object
Sets the value of the severity
attribute.
8198 8199 8200 |
# File 'lib/ovirtsdk4/types.rb', line 8198 def severity=(value) @severity = value end |
#solution ⇒ String
Returns the value of the solution
attribute.
8207 8208 8209 |
# File 'lib/ovirtsdk4/types.rb', line 8207 def solution @solution end |
#solution=(value) ⇒ Object
Sets the value of the solution
attribute.
8216 8217 8218 |
# File 'lib/ovirtsdk4/types.rb', line 8216 def solution=(value) @solution = value end |
#summary ⇒ String
Returns the value of the summary
attribute.
8225 8226 8227 |
# File 'lib/ovirtsdk4/types.rb', line 8225 def summary @summary end |
#summary=(value) ⇒ Object
Sets the value of the summary
attribute.
8234 8235 8236 |
# File 'lib/ovirtsdk4/types.rb', line 8234 def summary=(value) @summary = value end |
#title ⇒ String
Returns the value of the title
attribute.
8243 8244 8245 |
# File 'lib/ovirtsdk4/types.rb', line 8243 def title @title end |
#title=(value) ⇒ Object
Sets the value of the title
attribute.
8252 8253 8254 |
# File 'lib/ovirtsdk4/types.rb', line 8252 def title=(value) @title = value end |
#type ⇒ String
Returns the value of the type
attribute.
8261 8262 8263 |
# File 'lib/ovirtsdk4/types.rb', line 8261 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
8270 8271 8272 |
# File 'lib/ovirtsdk4/types.rb', line 8270 def type=(value) @type = value end |
#vm ⇒ Vm
Returns the value of the vm
attribute.
8279 8280 8281 |
# File 'lib/ovirtsdk4/types.rb', line 8279 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.
8292 8293 8294 8295 8296 8297 |
# File 'lib/ovirtsdk4/types.rb', line 8292 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |