Class: OvirtSDK4::Core
- 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.
-
#index ⇒ Integer
Returns the value of the
indexattribute. -
#index=(value) ⇒ Object
Sets the value of the
indexattribute. -
#initialize(opts = {}) ⇒ Core
constructor
Creates a new instance of the Core class.
-
#socket ⇒ Integer
Returns the value of the
socketattribute. -
#socket=(value) ⇒ Object
Sets the value of the
socketattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Core
Creates a new instance of the OvirtSDK4::Core class.
2219 2220 2221 2222 2223 |
# File 'lib/ovirtsdk4/types.rb', line 2219 def initialize(opts = {}) super(opts) self.index = opts[:index] self.socket = opts[:socket] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
2228 2229 2230 2231 2232 |
# File 'lib/ovirtsdk4/types.rb', line 2228 def ==(other) super && @index == other.index && @socket == other.socket end |
#hash ⇒ Object
Generates a hash value for this object.
2237 2238 2239 2240 2241 |
# File 'lib/ovirtsdk4/types.rb', line 2237 def hash super + @index.hash + @socket.hash end |
#index ⇒ Integer
Returns the value of the index attribute.
2176 2177 2178 |
# File 'lib/ovirtsdk4/types.rb', line 2176 def index @index end |
#index=(value) ⇒ Object
Sets the value of the index attribute.
2185 2186 2187 |
# File 'lib/ovirtsdk4/types.rb', line 2185 def index=(value) @index = value end |
#socket ⇒ Integer
Returns the value of the socket attribute.
2194 2195 2196 |
# File 'lib/ovirtsdk4/types.rb', line 2194 def socket @socket end |
#socket=(value) ⇒ Object
Sets the value of the socket attribute.
2203 2204 2205 |
# File 'lib/ovirtsdk4/types.rb', line 2203 def socket=(value) @socket = value end |