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`.
# File lib/ovirtsdk4/types.rb, line 3325 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 the value of the `bytes_read` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 3242 def bytes_read return @bytes_read end
Sets the value of the `bytes_read` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 3251 def bytes_read=(value) @bytes_read = value end
Returns the value of the `bytes_written` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 3260 def bytes_written return @bytes_written end
Sets the value of the `bytes_written` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 3269 def bytes_written=(value) @bytes_written = value end
Returns the value of the `client_port` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 3278 def client_port return @client_port end
Sets the value of the `client_port` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 3287 def client_port=(value) @client_port = value end
Returns the value of the `host_name` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 3296 def host_name return @host_name end
Sets the value of the `host_name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 3305 def host_name=(value) @host_name = value end