Class: OvirtSDK4::GlusterClient
- 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. -
#bytes_read ⇒ Integer
Returns the value of the
bytes_read
attribute. -
#bytes_read=(value) ⇒ Object
Sets the value of the
bytes_read
attribute. -
#bytes_written ⇒ Integer
Returns the value of the
bytes_written
attribute. -
#bytes_written=(value) ⇒ Object
Sets the value of the
bytes_written
attribute. -
#client_port ⇒ Integer
Returns the value of the
client_port
attribute. -
#client_port=(value) ⇒ Object
Sets the value of the
client_port
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host_name ⇒ String
Returns the value of the
host_name
attribute. -
#host_name=(value) ⇒ Object
Sets the value of the
host_name
attribute. -
#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.
4664 4665 4666 4667 4668 4669 4670 |
# 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 |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
4675 4676 4677 4678 4679 4680 4681 |
# 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 |
#bytes_read ⇒ Integer
Returns the value of the bytes_read
attribute.
4581 4582 4583 |
# File 'lib/ovirtsdk4/types.rb', line 4581 def bytes_read @bytes_read end |
#bytes_read=(value) ⇒ Object
Sets the value of the bytes_read
attribute.
4590 4591 4592 |
# File 'lib/ovirtsdk4/types.rb', line 4590 def bytes_read=(value) @bytes_read = value end |
#bytes_written ⇒ Integer
Returns the value of the bytes_written
attribute.
4599 4600 4601 |
# File 'lib/ovirtsdk4/types.rb', line 4599 def bytes_written @bytes_written end |
#bytes_written=(value) ⇒ Object
Sets the value of the bytes_written
attribute.
4608 4609 4610 |
# File 'lib/ovirtsdk4/types.rb', line 4608 def bytes_written=(value) @bytes_written = value end |
#client_port ⇒ Integer
Returns the value of the client_port
attribute.
4617 4618 4619 |
# File 'lib/ovirtsdk4/types.rb', line 4617 def client_port @client_port end |
#client_port=(value) ⇒ Object
Sets the value of the client_port
attribute.
4626 4627 4628 |
# File 'lib/ovirtsdk4/types.rb', line 4626 def client_port=(value) @client_port = value end |
#hash ⇒ Object
Generates a hash value for this object.
4686 4687 4688 4689 4690 4691 4692 |
# File 'lib/ovirtsdk4/types.rb', line 4686 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.
4635 4636 4637 |
# File 'lib/ovirtsdk4/types.rb', line 4635 def host_name @host_name end |
#host_name=(value) ⇒ Object
Sets the value of the host_name
attribute.
4644 4645 4646 |
# File 'lib/ovirtsdk4/types.rb', line 4644 def host_name=(value) @host_name = value end |