Class: OvirtSDK4::CustomProperty
- 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 = {}) ⇒ CustomProperty
constructor
Creates a new instance of the CustomProperty class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#regexp ⇒ String
Returns the value of the
regexp
attribute. -
#regexp=(value) ⇒ Object
Sets the value of the
regexp
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 = {}) ⇒ CustomProperty
Creates a new instance of the OvirtSDK4::CustomProperty class.
2800 2801 2802 2803 2804 2805 |
# File 'lib/ovirtsdk4/types.rb', line 2800 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.
2810 2811 2812 2813 2814 2815 |
# File 'lib/ovirtsdk4/types.rb', line 2810 def ==(other) super && @name == other.name && @regexp == other.regexp && @value == other.value end |
#hash ⇒ Object
Generates a hash value for this object.
2820 2821 2822 2823 2824 2825 |
# File 'lib/ovirtsdk4/types.rb', line 2820 def hash super + @name.hash + @regexp.hash + @value.hash end |
#name ⇒ String
Returns the value of the name
attribute.
2737 2738 2739 |
# File 'lib/ovirtsdk4/types.rb', line 2737 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
2746 2747 2748 |
# File 'lib/ovirtsdk4/types.rb', line 2746 def name=(value) @name = value end |
#regexp ⇒ String
Returns the value of the regexp
attribute.
2755 2756 2757 |
# File 'lib/ovirtsdk4/types.rb', line 2755 def regexp @regexp end |
#regexp=(value) ⇒ Object
Sets the value of the regexp
attribute.
2764 2765 2766 |
# File 'lib/ovirtsdk4/types.rb', line 2764 def regexp=(value) @regexp = value end |
#value ⇒ String
Returns the value of the value
attribute.
2773 2774 2775 |
# File 'lib/ovirtsdk4/types.rb', line 2773 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value
attribute.
2782 2783 2784 |
# File 'lib/ovirtsdk4/types.rb', line 2782 def value=(value) @value = value end |