Class: OvirtSDK4::Package
- 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 = {}) ⇒ Package
constructor
Creates a new instance of the Package class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Package
Creates a new instance of the OvirtSDK4::Package class.
13136 13137 13138 13139 |
# File 'lib/ovirtsdk4/types.rb', line 13136 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.
13144 13145 13146 13147 |
# File 'lib/ovirtsdk4/types.rb', line 13144 def ==(other) super && @name == other.name end |
#hash ⇒ Object
Generates a hash value for this object.
13152 13153 13154 13155 |
# File 'lib/ovirtsdk4/types.rb', line 13152 def hash super + @name.hash end |
#name ⇒ String
Returns the value of the name
attribute.
13113 13114 13115 |
# File 'lib/ovirtsdk4/types.rb', line 13113 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
13122 13123 13124 |
# File 'lib/ovirtsdk4/types.rb', line 13122 def name=(value) @name = value end |