Class: OvirtSDK4::Core
- 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.
-
#index ⇒ Integer
Returns the value of the
index
attribute. -
#index=(value) ⇒ Object
Sets the value of the
index
attribute. -
#initialize(opts = {}) ⇒ Core
constructor
Creates a new instance of the Core class.
-
#socket ⇒ Integer
Returns the value of the
socket
attribute. -
#socket=(value) ⇒ Object
Sets the value of the
socket
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Core
Creates a new instance of the OvirtSDK4::Core class.
2162 2163 2164 2165 2166 |
# File 'lib/ovirtsdk4/types.rb', line 2162 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.
2171 2172 2173 2174 2175 |
# File 'lib/ovirtsdk4/types.rb', line 2171 def ==(other) super && @index == other.index && @socket == other.socket end |
#hash ⇒ Object
Generates a hash value for this object.
2180 2181 2182 2183 2184 |
# File 'lib/ovirtsdk4/types.rb', line 2180 def hash super + @index.hash + @socket.hash end |
#index ⇒ Integer
Returns the value of the index
attribute.
2119 2120 2121 |
# File 'lib/ovirtsdk4/types.rb', line 2119 def index @index end |
#index=(value) ⇒ Object
Sets the value of the index
attribute.
2128 2129 2130 |
# File 'lib/ovirtsdk4/types.rb', line 2128 def index=(value) @index = value end |
#socket ⇒ Integer
Returns the value of the socket
attribute.
2137 2138 2139 |
# File 'lib/ovirtsdk4/types.rb', line 2137 def socket @socket end |
#socket=(value) ⇒ Object
Sets the value of the socket
attribute.
2146 2147 2148 |
# File 'lib/ovirtsdk4/types.rb', line 2146 def socket=(value) @socket = value end |