Class: OvirtSDK4::Configuration
- 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. -
#data ⇒ String
Returns the value of the
data
attribute. -
#data=(value) ⇒ Object
Sets the value of the
data
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ Configuration
constructor
Creates a new instance of the Configuration class.
-
#type ⇒ ConfigurationType
Returns the value of the
type
attribute. -
#type=(value) ⇒ Object
Sets the value of the
type
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Configuration
Creates a new instance of the OvirtSDK4::Configuration class.
2045 2046 2047 2048 2049 |
# File 'lib/ovirtsdk4/types.rb', line 2045 def initialize(opts = {}) super(opts) self.data = opts[:data] self.type = opts[:type] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
2054 2055 2056 2057 2058 |
# File 'lib/ovirtsdk4/types.rb', line 2054 def ==(other) super && @data == other.data && @type == other.type end |
#data ⇒ String
Returns the value of the data
attribute.
2002 2003 2004 |
# File 'lib/ovirtsdk4/types.rb', line 2002 def data @data end |
#data=(value) ⇒ Object
Sets the value of the data
attribute.
2011 2012 2013 |
# File 'lib/ovirtsdk4/types.rb', line 2011 def data=(value) @data = value end |
#hash ⇒ Object
Generates a hash value for this object.
2063 2064 2065 2066 2067 |
# File 'lib/ovirtsdk4/types.rb', line 2063 def hash super + @data.hash + @type.hash end |
#type ⇒ ConfigurationType
Returns the value of the type
attribute.
2020 2021 2022 |
# File 'lib/ovirtsdk4/types.rb', line 2020 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
2029 2030 2031 |
# File 'lib/ovirtsdk4/types.rb', line 2029 def type=(value) @type = value end |