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.
48232 48233 48234 48235 48236 |
# File 'lib/ovirtsdk4/types.rb', line 48232 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.
48241 48242 48243 48244 48245 |
# File 'lib/ovirtsdk4/types.rb', line 48241 def ==(other) super && @data == other.data && @media_type == other.media_type end |
#comment ⇒ String
Returns the value of the comment attribute.
48109 48110 48111 |
# File 'lib/ovirtsdk4/types.rb', line 48109 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
48118 48119 48120 |
# File 'lib/ovirtsdk4/types.rb', line 48118 def comment=(value) @comment = value end |
#data ⇒ String
Returns the value of the data attribute.
48127 48128 48129 |
# File 'lib/ovirtsdk4/types.rb', line 48127 def data @data end |
#data=(value) ⇒ Object
Sets the value of the data attribute.
48136 48137 48138 |
# File 'lib/ovirtsdk4/types.rb', line 48136 def data=(value) @data = value end |
#description ⇒ String
Returns the value of the description attribute.
48145 48146 48147 |
# File 'lib/ovirtsdk4/types.rb', line 48145 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
48154 48155 48156 |
# File 'lib/ovirtsdk4/types.rb', line 48154 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
48250 48251 48252 48253 48254 |
# File 'lib/ovirtsdk4/types.rb', line 48250 def hash super + @data.hash + @media_type.hash end |
#id ⇒ String
Returns the value of the id attribute.
48163 48164 48165 |
# File 'lib/ovirtsdk4/types.rb', line 48163 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
48172 48173 48174 |
# File 'lib/ovirtsdk4/types.rb', line 48172 def id=(value) @id = value end |
#media_type ⇒ String
Returns the value of the media_type attribute.
48181 48182 48183 |
# File 'lib/ovirtsdk4/types.rb', line 48181 def media_type @media_type end |
#media_type=(value) ⇒ Object
Sets the value of the media_type attribute.
48190 48191 48192 |
# File 'lib/ovirtsdk4/types.rb', line 48190 def media_type=(value) @media_type = value end |
#name ⇒ String
Returns the value of the name attribute.
48199 48200 48201 |
# File 'lib/ovirtsdk4/types.rb', line 48199 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
48208 48209 48210 |
# File 'lib/ovirtsdk4/types.rb', line 48208 def name=(value) @name = value end |