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.
6613 6614 6615 6616 6617 6618 6619 |
# File 'lib/ovirtsdk4/types.rb', line 6613 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.
6624 6625 6626 6627 6628 6629 6630 |
# File 'lib/ovirtsdk4/types.rb', line 6624 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.
6530 6531 6532 |
# File 'lib/ovirtsdk4/types.rb', line 6530 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
6539 6540 6541 |
# File 'lib/ovirtsdk4/types.rb', line 6539 def address=(value) @address = value end |
#gateway ⇒ String
Returns the value of the gateway
attribute.
6548 6549 6550 |
# File 'lib/ovirtsdk4/types.rb', line 6548 def gateway @gateway end |
#gateway=(value) ⇒ Object
Sets the value of the gateway
attribute.
6557 6558 6559 |
# File 'lib/ovirtsdk4/types.rb', line 6557 def gateway=(value) @gateway = value end |
#hash ⇒ Object
Generates a hash value for this object.
6635 6636 6637 6638 6639 6640 6641 |
# File 'lib/ovirtsdk4/types.rb', line 6635 def hash super + @address.hash + @gateway.hash + @netmask.hash + @version.hash end |
#netmask ⇒ String
Returns the value of the netmask
attribute.
6566 6567 6568 |
# File 'lib/ovirtsdk4/types.rb', line 6566 def netmask @netmask end |
#netmask=(value) ⇒ Object
Sets the value of the netmask
attribute.
6575 6576 6577 |
# File 'lib/ovirtsdk4/types.rb', line 6575 def netmask=(value) @netmask = value end |
#version ⇒ IpVersion
Returns the value of the version
attribute.
6584 6585 6586 |
# File 'lib/ovirtsdk4/types.rb', line 6584 def version @version end |
#version=(value) ⇒ Object
Sets the value of the version
attribute.
6593 6594 6595 |
# File 'lib/ovirtsdk4/types.rb', line 6593 def version=(value) @version = value end |