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.
44334 44335 44336 44337 44338 |
# File 'lib/ovirtsdk4/types.rb', line 44334 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.
44343 44344 44345 44346 44347 |
# File 'lib/ovirtsdk4/types.rb', line 44343 def ==(other) super && @data == other.data && @media_type == other.media_type end |
#comment ⇒ String
Returns the value of the comment
attribute.
44211 44212 44213 |
# File 'lib/ovirtsdk4/types.rb', line 44211 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
44220 44221 44222 |
# File 'lib/ovirtsdk4/types.rb', line 44220 def comment=(value) @comment = value end |
#data ⇒ String
Returns the value of the data
attribute.
44229 44230 44231 |
# File 'lib/ovirtsdk4/types.rb', line 44229 def data @data end |
#data=(value) ⇒ Object
Sets the value of the data
attribute.
44238 44239 44240 |
# File 'lib/ovirtsdk4/types.rb', line 44238 def data=(value) @data = value end |
#description ⇒ String
Returns the value of the description
attribute.
44247 44248 44249 |
# File 'lib/ovirtsdk4/types.rb', line 44247 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
44256 44257 44258 |
# File 'lib/ovirtsdk4/types.rb', line 44256 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
44352 44353 44354 44355 44356 |
# File 'lib/ovirtsdk4/types.rb', line 44352 def hash super + @data.hash + @media_type.hash end |
#id ⇒ String
Returns the value of the id
attribute.
44265 44266 44267 |
# File 'lib/ovirtsdk4/types.rb', line 44265 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
44274 44275 44276 |
# File 'lib/ovirtsdk4/types.rb', line 44274 def id=(value) @id = value end |
#media_type ⇒ String
Returns the value of the media_type
attribute.
44283 44284 44285 |
# File 'lib/ovirtsdk4/types.rb', line 44283 def media_type @media_type end |
#media_type=(value) ⇒ Object
Sets the value of the media_type
attribute.
44292 44293 44294 |
# File 'lib/ovirtsdk4/types.rb', line 44292 def media_type=(value) @media_type = value end |
#name ⇒ String
Returns the value of the name
attribute.
44301 44302 44303 |
# File 'lib/ovirtsdk4/types.rb', line 44301 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
44310 44311 44312 |
# File 'lib/ovirtsdk4/types.rb', line 44310 def name=(value) @name = value end |