Class: OvirtSDK4::Configuration
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#data ⇒ String
Returns the value of the
dataattribute. -
#data=(value) ⇒ Object
Sets the value of the
dataattribute. -
#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
typeattribute. -
#type=(value) ⇒ Object
Sets the value of the
typeattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Configuration
Creates a new instance of the OvirtSDK4::Configuration class.
2033 2034 2035 2036 2037 |
# File 'lib/ovirtsdk4/types.rb', line 2033 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.
2042 2043 2044 2045 2046 |
# File 'lib/ovirtsdk4/types.rb', line 2042 def ==(other) super && @data == other.data && @type == other.type end |
#data ⇒ String
Returns the value of the data attribute.
1990 1991 1992 |
# File 'lib/ovirtsdk4/types.rb', line 1990 def data @data end |
#data=(value) ⇒ Object
Sets the value of the data attribute.
1999 2000 2001 |
# File 'lib/ovirtsdk4/types.rb', line 1999 def data=(value) @data = value end |
#hash ⇒ Object
Generates a hash value for this object.
2051 2052 2053 2054 2055 |
# File 'lib/ovirtsdk4/types.rb', line 2051 def hash super + @data.hash + @type.hash end |
#type ⇒ ConfigurationType
Returns the value of the type attribute.
2008 2009 2010 |
# File 'lib/ovirtsdk4/types.rb', line 2008 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type attribute.
2017 2018 2019 |
# File 'lib/ovirtsdk4/types.rb', line 2017 def type=(value) @type = value end |