Class: OvirtSDK4::CustomProperty
- 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 = {}) ⇒ CustomProperty
constructor
Creates a new instance of the CustomProperty class.
-
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#regexp ⇒ String
Returns the value of the
regexpattribute. -
#regexp=(value) ⇒ Object
Sets the value of the
regexpattribute. -
#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 = {}) ⇒ CustomProperty
Creates a new instance of the OvirtSDK4::CustomProperty class.
2833 2834 2835 2836 2837 2838 |
# File 'lib/ovirtsdk4/types.rb', line 2833 def initialize(opts = {}) super(opts) self.name = opts[:name] self.regexp = opts[:regexp] self.value = opts[:value] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
2843 2844 2845 2846 2847 2848 |
# File 'lib/ovirtsdk4/types.rb', line 2843 def ==(other) super && @name == other.name && @regexp == other.regexp && @value == other.value end |
#hash ⇒ Object
Generates a hash value for this object.
2853 2854 2855 2856 2857 2858 |
# File 'lib/ovirtsdk4/types.rb', line 2853 def hash super + @name.hash + @regexp.hash + @value.hash end |
#name ⇒ String
Returns the value of the name attribute.
2770 2771 2772 |
# File 'lib/ovirtsdk4/types.rb', line 2770 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
2779 2780 2781 |
# File 'lib/ovirtsdk4/types.rb', line 2779 def name=(value) @name = value end |
#regexp ⇒ String
Returns the value of the regexp attribute.
2788 2789 2790 |
# File 'lib/ovirtsdk4/types.rb', line 2788 def regexp @regexp end |
#regexp=(value) ⇒ Object
Sets the value of the regexp attribute.
2797 2798 2799 |
# File 'lib/ovirtsdk4/types.rb', line 2797 def regexp=(value) @regexp = value end |
#value ⇒ String
Returns the value of the value attribute.
2806 2807 2808 |
# File 'lib/ovirtsdk4/types.rb', line 2806 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value attribute.
2815 2816 2817 |
# File 'lib/ovirtsdk4/types.rb', line 2815 def value=(value) @value = value end |