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.
13031 13032 13033 13034 13035 13036 |
# File 'lib/ovirtsdk4/types.rb', line 13031 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.
13041 13042 13043 13044 13045 13046 |
# File 'lib/ovirtsdk4/types.rb', line 13041 def ==(other) super && @name == other.name && @type == other.type && @value == other.value end |
#hash ⇒ Object
Generates a hash value for this object.
13051 13052 13053 13054 13055 13056 |
# File 'lib/ovirtsdk4/types.rb', line 13051 def hash super + @name.hash + @type.hash + @value.hash end |
#name ⇒ String
Returns the value of the name
attribute.
12968 12969 12970 |
# File 'lib/ovirtsdk4/types.rb', line 12968 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
12977 12978 12979 |
# File 'lib/ovirtsdk4/types.rb', line 12977 def name=(value) @name = value end |
#type ⇒ String
Returns the value of the type
attribute.
12986 12987 12988 |
# File 'lib/ovirtsdk4/types.rb', line 12986 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
12995 12996 12997 |
# File 'lib/ovirtsdk4/types.rb', line 12995 def type=(value) @type = value end |
#value ⇒ String
Returns the value of the value
attribute.
13004 13005 13006 |
# File 'lib/ovirtsdk4/types.rb', line 13004 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value
attribute.
13013 13014 13015 |
# File 'lib/ovirtsdk4/types.rb', line 13013 def value=(value) @value = value end |