Class: OvirtSDK4::Ip
- 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. -
#address ⇒ String
Returns the value of the
address
attribute. -
#address=(value) ⇒ Object
Sets the value of the
address
attribute. -
#gateway ⇒ String
Returns the value of the
gateway
attribute. -
#gateway=(value) ⇒ Object
Sets the value of the
gateway
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ Ip
constructor
Creates a new instance of the Ip class.
-
#netmask ⇒ String
Returns the value of the
netmask
attribute. -
#netmask=(value) ⇒ Object
Sets the value of the
netmask
attribute. -
#version ⇒ IpVersion
Returns the value of the
version
attribute. -
#version=(value) ⇒ Object
Sets the value of the
version
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Ip
Creates a new instance of the OvirtSDK4::Ip class.
6453 6454 6455 6456 6457 6458 6459 |
# File 'lib/ovirtsdk4/types.rb', line 6453 def initialize(opts = {}) super(opts) self.address = opts[:address] self.gateway = opts[:gateway] self.netmask = opts[:netmask] self.version = opts[:version] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
6464 6465 6466 6467 6468 6469 6470 |
# File 'lib/ovirtsdk4/types.rb', line 6464 def ==(other) super && @address == other.address && @gateway == other.gateway && @netmask == other.netmask && @version == other.version end |
#address ⇒ String
Returns the value of the address
attribute.
6370 6371 6372 |
# File 'lib/ovirtsdk4/types.rb', line 6370 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
6379 6380 6381 |
# File 'lib/ovirtsdk4/types.rb', line 6379 def address=(value) @address = value end |
#gateway ⇒ String
Returns the value of the gateway
attribute.
6388 6389 6390 |
# File 'lib/ovirtsdk4/types.rb', line 6388 def gateway @gateway end |
#gateway=(value) ⇒ Object
Sets the value of the gateway
attribute.
6397 6398 6399 |
# File 'lib/ovirtsdk4/types.rb', line 6397 def gateway=(value) @gateway = value end |
#hash ⇒ Object
Generates a hash value for this object.
6475 6476 6477 6478 6479 6480 6481 |
# File 'lib/ovirtsdk4/types.rb', line 6475 def hash super + @address.hash + @gateway.hash + @netmask.hash + @version.hash end |
#netmask ⇒ String
Returns the value of the netmask
attribute.
6406 6407 6408 |
# File 'lib/ovirtsdk4/types.rb', line 6406 def netmask @netmask end |
#netmask=(value) ⇒ Object
Sets the value of the netmask
attribute.
6415 6416 6417 |
# File 'lib/ovirtsdk4/types.rb', line 6415 def netmask=(value) @netmask = value end |
#version ⇒ IpVersion
Returns the value of the version
attribute.
6424 6425 6426 |
# File 'lib/ovirtsdk4/types.rb', line 6424 def version @version end |
#version=(value) ⇒ Object
Sets the value of the version
attribute.
6433 6434 6435 |
# File 'lib/ovirtsdk4/types.rb', line 6433 def version=(value) @version = value end |