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.
13886 13887 13888 13889 13890 13891 |
# File 'lib/ovirtsdk4/types.rb', line 13886 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.
13896 13897 13898 13899 13900 13901 |
# File 'lib/ovirtsdk4/types.rb', line 13896 def ==(other) super && @name == other.name && @type == other.type && @value == other.value end |
#hash ⇒ Object
Generates a hash value for this object.
13906 13907 13908 13909 13910 13911 |
# File 'lib/ovirtsdk4/types.rb', line 13906 def hash super + @name.hash + @type.hash + @value.hash end |
#name ⇒ String
Returns the value of the name
attribute.
13823 13824 13825 |
# File 'lib/ovirtsdk4/types.rb', line 13823 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
13832 13833 13834 |
# File 'lib/ovirtsdk4/types.rb', line 13832 def name=(value) @name = value end |
#type ⇒ String
Returns the value of the type
attribute.
13841 13842 13843 |
# File 'lib/ovirtsdk4/types.rb', line 13841 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
13850 13851 13852 |
# File 'lib/ovirtsdk4/types.rb', line 13850 def type=(value) @type = value end |
#value ⇒ String
Returns the value of the value
attribute.
13859 13860 13861 |
# File 'lib/ovirtsdk4/types.rb', line 13859 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value
attribute.
13868 13869 13870 |
# File 'lib/ovirtsdk4/types.rb', line 13868 def value=(value) @value = value end |