Class: OvirtSDK4::Icon
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Icon
- 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. -
#data ⇒ String
Returns the value of the
data
attribute. -
#data=(value) ⇒ Object
Sets the value of the
data
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.
-
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ Icon
constructor
Creates a new instance of the Icon class.
-
#media_type ⇒ String
Returns the value of the
media_type
attribute. -
#media_type=(value) ⇒ Object
Sets the value of the
media_type
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Icon
Creates a new instance of the OvirtSDK4::Icon class.
44463 44464 44465 44466 44467 |
# File 'lib/ovirtsdk4/types.rb', line 44463 def initialize(opts = {}) super(opts) self.data = opts[:data] self.media_type = opts[:media_type] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
44472 44473 44474 44475 44476 |
# File 'lib/ovirtsdk4/types.rb', line 44472 def ==(other) super && @data == other.data && @media_type == other.media_type end |
#comment ⇒ String
Returns the value of the comment
attribute.
44340 44341 44342 |
# File 'lib/ovirtsdk4/types.rb', line 44340 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
44349 44350 44351 |
# File 'lib/ovirtsdk4/types.rb', line 44349 def comment=(value) @comment = value end |
#data ⇒ String
Returns the value of the data
attribute.
44358 44359 44360 |
# File 'lib/ovirtsdk4/types.rb', line 44358 def data @data end |
#data=(value) ⇒ Object
Sets the value of the data
attribute.
44367 44368 44369 |
# File 'lib/ovirtsdk4/types.rb', line 44367 def data=(value) @data = value end |
#description ⇒ String
Returns the value of the description
attribute.
44376 44377 44378 |
# File 'lib/ovirtsdk4/types.rb', line 44376 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
44385 44386 44387 |
# File 'lib/ovirtsdk4/types.rb', line 44385 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
44481 44482 44483 44484 44485 |
# File 'lib/ovirtsdk4/types.rb', line 44481 def hash super + @data.hash + @media_type.hash end |
#id ⇒ String
Returns the value of the id
attribute.
44394 44395 44396 |
# File 'lib/ovirtsdk4/types.rb', line 44394 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
44403 44404 44405 |
# File 'lib/ovirtsdk4/types.rb', line 44403 def id=(value) @id = value end |
#media_type ⇒ String
Returns the value of the media_type
attribute.
44412 44413 44414 |
# File 'lib/ovirtsdk4/types.rb', line 44412 def media_type @media_type end |
#media_type=(value) ⇒ Object
Sets the value of the media_type
attribute.
44421 44422 44423 |
# File 'lib/ovirtsdk4/types.rb', line 44421 def media_type=(value) @media_type = value end |
#name ⇒ String
Returns the value of the name
attribute.
44430 44431 44432 |
# File 'lib/ovirtsdk4/types.rb', line 44430 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
44439 44440 44441 |
# File 'lib/ovirtsdk4/types.rb', line 44439 def name=(value) @name = value end |