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.
6578 6579 6580 6581 6582 6583 6584 |
# File 'lib/ovirtsdk4/types.rb', line 6578 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.
6589 6590 6591 6592 6593 6594 6595 |
# File 'lib/ovirtsdk4/types.rb', line 6589 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.
6495 6496 6497 |
# File 'lib/ovirtsdk4/types.rb', line 6495 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
6504 6505 6506 |
# File 'lib/ovirtsdk4/types.rb', line 6504 def address=(value) @address = value end |
#gateway ⇒ String
Returns the value of the gateway
attribute.
6513 6514 6515 |
# File 'lib/ovirtsdk4/types.rb', line 6513 def gateway @gateway end |
#gateway=(value) ⇒ Object
Sets the value of the gateway
attribute.
6522 6523 6524 |
# File 'lib/ovirtsdk4/types.rb', line 6522 def gateway=(value) @gateway = value end |
#hash ⇒ Object
Generates a hash value for this object.
6600 6601 6602 6603 6604 6605 6606 |
# File 'lib/ovirtsdk4/types.rb', line 6600 def hash super + @address.hash + @gateway.hash + @netmask.hash + @version.hash end |
#netmask ⇒ String
Returns the value of the netmask
attribute.
6531 6532 6533 |
# File 'lib/ovirtsdk4/types.rb', line 6531 def netmask @netmask end |
#netmask=(value) ⇒ Object
Sets the value of the netmask
attribute.
6540 6541 6542 |
# File 'lib/ovirtsdk4/types.rb', line 6540 def netmask=(value) @netmask = value end |
#version ⇒ IpVersion
Returns the value of the version
attribute.
6549 6550 6551 |
# File 'lib/ovirtsdk4/types.rb', line 6549 def version @version end |
#version=(value) ⇒ Object
Sets the value of the version
attribute.
6558 6559 6560 |
# File 'lib/ovirtsdk4/types.rb', line 6558 def version=(value) @version = value end |