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.
44539 44540 44541 44542 44543 |
# File 'lib/ovirtsdk4/types.rb', line 44539 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.
44548 44549 44550 44551 44552 |
# File 'lib/ovirtsdk4/types.rb', line 44548 def ==(other) super && @data == other.data && @media_type == other.media_type end |
#comment ⇒ String
Returns the value of the comment
attribute.
44416 44417 44418 |
# File 'lib/ovirtsdk4/types.rb', line 44416 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
44425 44426 44427 |
# File 'lib/ovirtsdk4/types.rb', line 44425 def comment=(value) @comment = value end |
#data ⇒ String
Returns the value of the data
attribute.
44434 44435 44436 |
# File 'lib/ovirtsdk4/types.rb', line 44434 def data @data end |
#data=(value) ⇒ Object
Sets the value of the data
attribute.
44443 44444 44445 |
# File 'lib/ovirtsdk4/types.rb', line 44443 def data=(value) @data = value end |
#description ⇒ String
Returns the value of the description
attribute.
44452 44453 44454 |
# File 'lib/ovirtsdk4/types.rb', line 44452 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
44461 44462 44463 |
# File 'lib/ovirtsdk4/types.rb', line 44461 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
44557 44558 44559 44560 44561 |
# File 'lib/ovirtsdk4/types.rb', line 44557 def hash super + @data.hash + @media_type.hash end |
#id ⇒ String
Returns the value of the id
attribute.
44470 44471 44472 |
# File 'lib/ovirtsdk4/types.rb', line 44470 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
44479 44480 44481 |
# File 'lib/ovirtsdk4/types.rb', line 44479 def id=(value) @id = value end |
#media_type ⇒ String
Returns the value of the media_type
attribute.
44488 44489 44490 |
# File 'lib/ovirtsdk4/types.rb', line 44488 def media_type @media_type end |
#media_type=(value) ⇒ Object
Sets the value of the media_type
attribute.
44497 44498 44499 |
# File 'lib/ovirtsdk4/types.rb', line 44497 def media_type=(value) @media_type = value end |
#name ⇒ String
Returns the value of the name
attribute.
44506 44507 44508 |
# File 'lib/ovirtsdk4/types.rb', line 44506 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
44515 44516 44517 |
# File 'lib/ovirtsdk4/types.rb', line 44515 def name=(value) @name = value end |