Class: OvirtSDK4::Property
- 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 = {}) ⇒ Property
constructor
Creates a new instance of the Property class.
-
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#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 = {}) ⇒ Property
Creates a new instance of the OvirtSDK4::Property class.
15768 15769 15770 15771 15772 |
# File 'lib/ovirtsdk4/types.rb', line 15768 def initialize(opts = {}) super(opts) self.name = opts[:name] self.value = opts[:value] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
15777 15778 15779 15780 15781 |
# File 'lib/ovirtsdk4/types.rb', line 15777 def ==(other) super && @name == other.name && @value == other.value end |
#hash ⇒ Object
Generates a hash value for this object.
15786 15787 15788 15789 15790 |
# File 'lib/ovirtsdk4/types.rb', line 15786 def hash super + @name.hash + @value.hash end |
#name ⇒ String
Returns the value of the name attribute.
15725 15726 15727 |
# File 'lib/ovirtsdk4/types.rb', line 15725 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
15734 15735 15736 |
# File 'lib/ovirtsdk4/types.rb', line 15734 def name=(value) @name = value end |
#value ⇒ String
Returns the value of the value attribute.
15743 15744 15745 |
# File 'lib/ovirtsdk4/types.rb', line 15743 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value attribute.
15752 15753 15754 |
# File 'lib/ovirtsdk4/types.rb', line 15752 def value=(value) @value = value end |