Class: OvirtSDK4::Property
- 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 = {}) ⇒ Property
constructor
Creates a new instance of the Property class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
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 = {}) ⇒ Property
Creates a new instance of the OvirtSDK4::Property class.
14768 14769 14770 14771 14772 |
# File 'lib/ovirtsdk4/types.rb', line 14768 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.
14777 14778 14779 14780 14781 |
# File 'lib/ovirtsdk4/types.rb', line 14777 def ==(other) super && @name == other.name && @value == other.value end |
#hash ⇒ Object
Generates a hash value for this object.
14786 14787 14788 14789 14790 |
# File 'lib/ovirtsdk4/types.rb', line 14786 def hash super + @name.hash + @value.hash end |
#name ⇒ String
Returns the value of the name
attribute.
14725 14726 14727 |
# File 'lib/ovirtsdk4/types.rb', line 14725 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
14734 14735 14736 |
# File 'lib/ovirtsdk4/types.rb', line 14734 def name=(value) @name = value end |
#value ⇒ String
Returns the value of the value
attribute.
14743 14744 14745 |
# File 'lib/ovirtsdk4/types.rb', line 14743 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value
attribute.
14752 14753 14754 |
# File 'lib/ovirtsdk4/types.rb', line 14752 def value=(value) @value = value end |