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.
2133 2134 2135 2136 2137 |
# File 'lib/ovirtsdk4/types.rb', line 2133 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.
2142 2143 2144 2145 2146 |
# File 'lib/ovirtsdk4/types.rb', line 2142 def ==(other) super && @index == other.index && @socket == other.socket end |
#hash ⇒ Object
Generates a hash value for this object.
2151 2152 2153 2154 2155 |
# File 'lib/ovirtsdk4/types.rb', line 2151 def hash super + @index.hash + @socket.hash end |
#index ⇒ Integer
Returns the value of the index
attribute.
2090 2091 2092 |
# File 'lib/ovirtsdk4/types.rb', line 2090 def index @index end |
#index=(value) ⇒ Object
Sets the value of the index
attribute.
2099 2100 2101 |
# File 'lib/ovirtsdk4/types.rb', line 2099 def index=(value) @index = value end |
#socket ⇒ Integer
Returns the value of the socket
attribute.
2108 2109 2110 |
# File 'lib/ovirtsdk4/types.rb', line 2108 def socket @socket end |
#socket=(value) ⇒ Object
Sets the value of the socket
attribute.
2117 2118 2119 |
# File 'lib/ovirtsdk4/types.rb', line 2117 def socket=(value) @socket = value end |