class OvirtSDK4::GlusterClient
Public Class Methods
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`.
OvirtSDK4::Struct::new
# File lib/ovirtsdk4/types.rb, line 4664 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
Public Instance Methods
Returns `true` if `self` and `other` have the same attributes and values.
# File lib/ovirtsdk4/types.rb, line 4675 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 4581 def bytes_read @bytes_read end
Sets the value of the `bytes_read` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 4590 def bytes_read=(value) @bytes_read = value end
Returns the value of the `bytes_written` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 4599 def bytes_written @bytes_written end
Sets the value of the `bytes_written` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 4608 def bytes_written=(value) @bytes_written = value end
Returns the value of the `client_port` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 4617 def client_port @client_port end
Sets the value of the `client_port` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 4626 def client_port=(value) @client_port = value end
Generates a hash value for this object.
OvirtSDK4::Struct#hash
# File lib/ovirtsdk4/types.rb, line 4686 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 4635 def host_name @host_name end
Sets the value of the `host_name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 4644 def host_name=(value) @host_name = value end