Class: OvirtSDK4::Package
- 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 = {}) ⇒ Package
constructor
Creates a new instance of the Package class.
-
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Package
Creates a new instance of the OvirtSDK4::Package class.
14215 14216 14217 14218 |
# File 'lib/ovirtsdk4/types.rb', line 14215 def initialize(opts = {}) super(opts) self.name = opts[:name] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
14223 14224 14225 14226 |
# File 'lib/ovirtsdk4/types.rb', line 14223 def ==(other) super && @name == other.name end |
#hash ⇒ Object
Generates a hash value for this object.
14231 14232 14233 14234 |
# File 'lib/ovirtsdk4/types.rb', line 14231 def hash super + @name.hash end |
#name ⇒ String
Returns the value of the name attribute.
14192 14193 14194 |
# File 'lib/ovirtsdk4/types.rb', line 14192 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
14201 14202 14203 |
# File 'lib/ovirtsdk4/types.rb', line 14201 def name=(value) @name = value end |