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.
47939 47940 47941 47942 47943 |
# File 'lib/ovirtsdk4/types.rb', line 47939 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.
47948 47949 47950 47951 47952 |
# File 'lib/ovirtsdk4/types.rb', line 47948 def ==(other) super && @data == other.data && @media_type == other.media_type end |
#comment ⇒ String
Returns the value of the comment
attribute.
47816 47817 47818 |
# File 'lib/ovirtsdk4/types.rb', line 47816 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
47825 47826 47827 |
# File 'lib/ovirtsdk4/types.rb', line 47825 def comment=(value) @comment = value end |
#data ⇒ String
Returns the value of the data
attribute.
47834 47835 47836 |
# File 'lib/ovirtsdk4/types.rb', line 47834 def data @data end |
#data=(value) ⇒ Object
Sets the value of the data
attribute.
47843 47844 47845 |
# File 'lib/ovirtsdk4/types.rb', line 47843 def data=(value) @data = value end |
#description ⇒ String
Returns the value of the description
attribute.
47852 47853 47854 |
# File 'lib/ovirtsdk4/types.rb', line 47852 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
47861 47862 47863 |
# File 'lib/ovirtsdk4/types.rb', line 47861 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
47957 47958 47959 47960 47961 |
# File 'lib/ovirtsdk4/types.rb', line 47957 def hash super + @data.hash + @media_type.hash end |
#id ⇒ String
Returns the value of the id
attribute.
47870 47871 47872 |
# File 'lib/ovirtsdk4/types.rb', line 47870 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
47879 47880 47881 |
# File 'lib/ovirtsdk4/types.rb', line 47879 def id=(value) @id = value end |
#media_type ⇒ String
Returns the value of the media_type
attribute.
47888 47889 47890 |
# File 'lib/ovirtsdk4/types.rb', line 47888 def media_type @media_type end |
#media_type=(value) ⇒ Object
Sets the value of the media_type
attribute.
47897 47898 47899 |
# File 'lib/ovirtsdk4/types.rb', line 47897 def media_type=(value) @media_type = value end |
#name ⇒ String
Returns the value of the name
attribute.
47906 47907 47908 |
# File 'lib/ovirtsdk4/types.rb', line 47906 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
47915 47916 47917 |
# File 'lib/ovirtsdk4/types.rb', line 47915 def name=(value) @name = value end |