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.
2004 2005 2006 2007 2008 |
# File 'lib/ovirtsdk4/types.rb', line 2004 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.
2013 2014 2015 2016 2017 |
# File 'lib/ovirtsdk4/types.rb', line 2013 def ==(other) super && @data == other.data && @type == other.type end |
#data ⇒ String
Returns the value of the data
attribute.
1961 1962 1963 |
# File 'lib/ovirtsdk4/types.rb', line 1961 def data @data end |
#data=(value) ⇒ Object
Sets the value of the data
attribute.
1970 1971 1972 |
# File 'lib/ovirtsdk4/types.rb', line 1970 def data=(value) @data = value end |
#hash ⇒ Object
Generates a hash value for this object.
2022 2023 2024 2025 2026 |
# File 'lib/ovirtsdk4/types.rb', line 2022 def hash super + @data.hash + @type.hash end |
#type ⇒ ConfigurationType
Returns the value of the type
attribute.
1979 1980 1981 |
# File 'lib/ovirtsdk4/types.rb', line 1979 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
1988 1989 1990 |
# File 'lib/ovirtsdk4/types.rb', line 1988 def type=(value) @type = value end |