Creates a new instance of the {GlusterClient} class.
@param opts [Hash] A hash containing the attributes of the object. The keys of the hash
should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.
@option opts [Integer] :bytes_read The value of attribute `bytes_read`.
@option opts [Integer] :bytes_written The value of attribute `bytes_written`.
@option opts [Integer] :client_port The value of attribute `client_port`.
@option opts [String] :host_name The value of attribute `host_name`.
# File lib/ovirtsdk4/types.rb, line 4146 def initialize(opts = {}) super(opts) self.bytes_read = opts[:bytes_read] self.bytes_written = opts[:bytes_written] self.client_port = opts[:client_port] self.host_name = opts[:host_name] end
Returns `true` if `self` and `other` have the same attributes and values.
# File lib/ovirtsdk4/types.rb, line 4157 def ==(other) super && @bytes_read == other.bytes_read && @bytes_written == other.bytes_written && @client_port == other.client_port && @host_name == other.host_name end
Returns the value of the `bytes_read` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 4063 def bytes_read @bytes_read end
Sets the value of the `bytes_read` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 4072 def bytes_read=(value) @bytes_read = value end
Returns the value of the `bytes_written` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 4081 def bytes_written @bytes_written end
Sets the value of the `bytes_written` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 4090 def bytes_written=(value) @bytes_written = value end
Returns the value of the `client_port` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 4099 def client_port @client_port end
Sets the value of the `client_port` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 4108 def client_port=(value) @client_port = value end
Generates a hash value for this object.
# File lib/ovirtsdk4/types.rb, line 4168 def hash super + @bytes_read.hash + @bytes_written.hash + @client_port.hash + @host_name.hash end
Returns the value of the `host_name` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 4117 def host_name @host_name end
Sets the value of the `host_name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 4126 def host_name=(value) @host_name = value end