Class: OvirtSDK4::Option
- 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. -
#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
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#type ⇒ String
Returns the value of the
type
attribute. -
#type=(value) ⇒ Object
Sets the value of the
type
attribute. -
#value ⇒ String
Returns the value of the
value
attribute. -
#value=(value) ⇒ Object
Sets the value of the
value
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Option
Creates a new instance of the OvirtSDK4::Option class.
13179 13180 13181 13182 13183 13184 |
# File 'lib/ovirtsdk4/types.rb', line 13179 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.
13189 13190 13191 13192 13193 13194 |
# File 'lib/ovirtsdk4/types.rb', line 13189 def ==(other) super && @name == other.name && @type == other.type && @value == other.value end |
#hash ⇒ Object
Generates a hash value for this object.
13199 13200 13201 13202 13203 13204 |
# File 'lib/ovirtsdk4/types.rb', line 13199 def hash super + @name.hash + @type.hash + @value.hash end |
#name ⇒ String
Returns the value of the name
attribute.
13116 13117 13118 |
# File 'lib/ovirtsdk4/types.rb', line 13116 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
13125 13126 13127 |
# File 'lib/ovirtsdk4/types.rb', line 13125 def name=(value) @name = value end |
#type ⇒ String
Returns the value of the type
attribute.
13134 13135 13136 |
# File 'lib/ovirtsdk4/types.rb', line 13134 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
13143 13144 13145 |
# File 'lib/ovirtsdk4/types.rb', line 13143 def type=(value) @type = value end |
#value ⇒ String
Returns the value of the value
attribute.
13152 13153 13154 |
# File 'lib/ovirtsdk4/types.rb', line 13152 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value
attribute.
13161 13162 13163 |
# File 'lib/ovirtsdk4/types.rb', line 13161 def value=(value) @value = value end |