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
trueifselfandotherhave the same attributes and values. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#data ⇒ String
Returns the value of the
dataattribute. -
#data=(value) ⇒ Object
Sets the value of the
dataattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ Icon
constructor
Creates a new instance of the Icon class.
-
#media_type ⇒ String
Returns the value of the
media_typeattribute. -
#media_type=(value) ⇒ Object
Sets the value of the
media_typeattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Icon
Creates a new instance of the OvirtSDK4::Icon class.
44394 44395 44396 44397 44398 |
# File 'lib/ovirtsdk4/types.rb', line 44394 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.
44403 44404 44405 44406 44407 |
# File 'lib/ovirtsdk4/types.rb', line 44403 def ==(other) super && @data == other.data && @media_type == other.media_type end |
#comment ⇒ String
Returns the value of the comment attribute.
44271 44272 44273 |
# File 'lib/ovirtsdk4/types.rb', line 44271 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
44280 44281 44282 |
# File 'lib/ovirtsdk4/types.rb', line 44280 def comment=(value) @comment = value end |
#data ⇒ String
Returns the value of the data attribute.
44289 44290 44291 |
# File 'lib/ovirtsdk4/types.rb', line 44289 def data @data end |
#data=(value) ⇒ Object
Sets the value of the data attribute.
44298 44299 44300 |
# File 'lib/ovirtsdk4/types.rb', line 44298 def data=(value) @data = value end |
#description ⇒ String
Returns the value of the description attribute.
44307 44308 44309 |
# File 'lib/ovirtsdk4/types.rb', line 44307 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
44316 44317 44318 |
# File 'lib/ovirtsdk4/types.rb', line 44316 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
44412 44413 44414 44415 44416 |
# File 'lib/ovirtsdk4/types.rb', line 44412 def hash super + @data.hash + @media_type.hash end |
#id ⇒ String
Returns the value of the id attribute.
44325 44326 44327 |
# File 'lib/ovirtsdk4/types.rb', line 44325 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
44334 44335 44336 |
# File 'lib/ovirtsdk4/types.rb', line 44334 def id=(value) @id = value end |
#media_type ⇒ String
Returns the value of the media_type attribute.
44343 44344 44345 |
# File 'lib/ovirtsdk4/types.rb', line 44343 def media_type @media_type end |
#media_type=(value) ⇒ Object
Sets the value of the media_type attribute.
44352 44353 44354 |
# File 'lib/ovirtsdk4/types.rb', line 44352 def media_type=(value) @media_type = value end |
#name ⇒ String
Returns the value of the name attribute.
44361 44362 44363 |
# File 'lib/ovirtsdk4/types.rb', line 44361 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
44370 44371 44372 |
# File 'lib/ovirtsdk4/types.rb', line 44370 def name=(value) @name = value end |