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.
15498 15499 15500 15501 15502 |
# File 'lib/ovirtsdk4/types.rb', line 15498 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.
15507 15508 15509 15510 15511 |
# File 'lib/ovirtsdk4/types.rb', line 15507 def ==(other) super && @name == other.name && @value == other.value end |
#hash ⇒ Object
Generates a hash value for this object.
15516 15517 15518 15519 15520 |
# File 'lib/ovirtsdk4/types.rb', line 15516 def hash super + @name.hash + @value.hash end |
#name ⇒ String
Returns the value of the name
attribute.
15455 15456 15457 |
# File 'lib/ovirtsdk4/types.rb', line 15455 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
15464 15465 15466 |
# File 'lib/ovirtsdk4/types.rb', line 15464 def name=(value) @name = value end |
#value ⇒ String
Returns the value of the value
attribute.
15473 15474 15475 |
# File 'lib/ovirtsdk4/types.rb', line 15473 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value
attribute.
15482 15483 15484 |
# File 'lib/ovirtsdk4/types.rb', line 15482 def value=(value) @value = value end |