Class: OvirtSDK4::Option
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ Option
constructor
Creates a new instance of the Option class.
-
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#type ⇒ String
Returns the value of the
typeattribute. -
#type=(value) ⇒ Object
Sets the value of the
typeattribute. -
#value ⇒ String
Returns the value of the
valueattribute. -
#value=(value) ⇒ Object
Sets the value of the
valueattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Option
Creates a new instance of the OvirtSDK4::Option class.
14156 14157 14158 14159 14160 14161 |
# File 'lib/ovirtsdk4/types.rb', line 14156 def initialize(opts = {}) super(opts) self.name = opts[:name] self.type = opts[:type] self.value = opts[:value] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
14166 14167 14168 14169 14170 14171 |
# File 'lib/ovirtsdk4/types.rb', line 14166 def ==(other) super && @name == other.name && @type == other.type && @value == other.value end |
#hash ⇒ Object
Generates a hash value for this object.
14176 14177 14178 14179 14180 14181 |
# File 'lib/ovirtsdk4/types.rb', line 14176 def hash super + @name.hash + @type.hash + @value.hash end |
#name ⇒ String
Returns the value of the name attribute.
14093 14094 14095 |
# File 'lib/ovirtsdk4/types.rb', line 14093 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
14102 14103 14104 |
# File 'lib/ovirtsdk4/types.rb', line 14102 def name=(value) @name = value end |
#type ⇒ String
Returns the value of the type attribute.
14111 14112 14113 |
# File 'lib/ovirtsdk4/types.rb', line 14111 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type attribute.
14120 14121 14122 |
# File 'lib/ovirtsdk4/types.rb', line 14120 def type=(value) @type = value end |
#value ⇒ String
Returns the value of the value attribute.
14129 14130 14131 |
# File 'lib/ovirtsdk4/types.rb', line 14129 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value attribute.
14138 14139 14140 |
# File 'lib/ovirtsdk4/types.rb', line 14138 def value=(value) @value = value end |