Class: OvirtSDK4::GlusterClient
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#bytes_read ⇒ Integer
Returns the value of the
bytes_readattribute. -
#bytes_read=(value) ⇒ Object
Sets the value of the
bytes_readattribute. -
#bytes_written ⇒ Integer
Returns the value of the
bytes_writtenattribute. -
#bytes_written=(value) ⇒ Object
Sets the value of the
bytes_writtenattribute. -
#client_port ⇒ Integer
Returns the value of the
client_portattribute. -
#client_port=(value) ⇒ Object
Sets the value of the
client_portattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host_name ⇒ String
Returns the value of the
host_nameattribute. -
#host_name=(value) ⇒ Object
Sets the value of the
host_nameattribute. -
#initialize(opts = {}) ⇒ GlusterClient
constructor
Creates a new instance of the GlusterClient class.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ GlusterClient
Creates a new instance of the OvirtSDK4::GlusterClient class.
4888 4889 4890 4891 4892 4893 4894 |
# File 'lib/ovirtsdk4/types.rb', line 4888 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 |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
4899 4900 4901 4902 4903 4904 4905 |
# File 'lib/ovirtsdk4/types.rb', line 4899 def ==(other) super && @bytes_read == other.bytes_read && @bytes_written == other.bytes_written && @client_port == other.client_port && @host_name == other.host_name end |
#bytes_read ⇒ Integer
Returns the value of the bytes_read attribute.
4805 4806 4807 |
# File 'lib/ovirtsdk4/types.rb', line 4805 def bytes_read @bytes_read end |
#bytes_read=(value) ⇒ Object
Sets the value of the bytes_read attribute.
4814 4815 4816 |
# File 'lib/ovirtsdk4/types.rb', line 4814 def bytes_read=(value) @bytes_read = value end |
#bytes_written ⇒ Integer
Returns the value of the bytes_written attribute.
4823 4824 4825 |
# File 'lib/ovirtsdk4/types.rb', line 4823 def bytes_written @bytes_written end |
#bytes_written=(value) ⇒ Object
Sets the value of the bytes_written attribute.
4832 4833 4834 |
# File 'lib/ovirtsdk4/types.rb', line 4832 def bytes_written=(value) @bytes_written = value end |
#client_port ⇒ Integer
Returns the value of the client_port attribute.
4841 4842 4843 |
# File 'lib/ovirtsdk4/types.rb', line 4841 def client_port @client_port end |
#client_port=(value) ⇒ Object
Sets the value of the client_port attribute.
4850 4851 4852 |
# File 'lib/ovirtsdk4/types.rb', line 4850 def client_port=(value) @client_port = value end |
#hash ⇒ Object
Generates a hash value for this object.
4910 4911 4912 4913 4914 4915 4916 |
# File 'lib/ovirtsdk4/types.rb', line 4910 def hash super + @bytes_read.hash + @bytes_written.hash + @client_port.hash + @host_name.hash end |
#host_name ⇒ String
Returns the value of the host_name attribute.
4859 4860 4861 |
# File 'lib/ovirtsdk4/types.rb', line 4859 def host_name @host_name end |
#host_name=(value) ⇒ Object
Sets the value of the host_name attribute.
4868 4869 4870 |
# File 'lib/ovirtsdk4/types.rb', line 4868 def host_name=(value) @host_name = value end |