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.
6994 6995 6996 6997 6998 6999 7000 |
# File 'lib/ovirtsdk4/types.rb', line 6994 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.
7005 7006 7007 7008 7009 7010 7011 |
# File 'lib/ovirtsdk4/types.rb', line 7005 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.
6911 6912 6913 |
# File 'lib/ovirtsdk4/types.rb', line 6911 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
6920 6921 6922 |
# File 'lib/ovirtsdk4/types.rb', line 6920 def address=(value) @address = value end |
#gateway ⇒ String
Returns the value of the gateway
attribute.
6929 6930 6931 |
# File 'lib/ovirtsdk4/types.rb', line 6929 def gateway @gateway end |
#gateway=(value) ⇒ Object
Sets the value of the gateway
attribute.
6938 6939 6940 |
# File 'lib/ovirtsdk4/types.rb', line 6938 def gateway=(value) @gateway = value end |
#hash ⇒ Object
Generates a hash value for this object.
7016 7017 7018 7019 7020 7021 7022 |
# File 'lib/ovirtsdk4/types.rb', line 7016 def hash super + @address.hash + @gateway.hash + @netmask.hash + @version.hash end |
#netmask ⇒ String
Returns the value of the netmask
attribute.
6947 6948 6949 |
# File 'lib/ovirtsdk4/types.rb', line 6947 def netmask @netmask end |
#netmask=(value) ⇒ Object
Sets the value of the netmask
attribute.
6956 6957 6958 |
# File 'lib/ovirtsdk4/types.rb', line 6956 def netmask=(value) @netmask = value end |
#version ⇒ IpVersion
Returns the value of the version
attribute.
6965 6966 6967 |
# File 'lib/ovirtsdk4/types.rb', line 6965 def version @version end |
#version=(value) ⇒ Object
Sets the value of the version
attribute.
6974 6975 6976 |
# File 'lib/ovirtsdk4/types.rb', line 6974 def version=(value) @version = value end |