Class: OvirtSDK4::Ip
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#address ⇒ String
Returns the value of the
addressattribute. -
#address=(value) ⇒ Object
Sets the value of the
addressattribute. -
#gateway ⇒ String
Returns the value of the
gatewayattribute. -
#gateway=(value) ⇒ Object
Sets the value of the
gatewayattribute. -
#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
netmaskattribute. -
#netmask=(value) ⇒ Object
Sets the value of the
netmaskattribute. -
#version ⇒ IpVersion
Returns the value of the
versionattribute. -
#version=(value) ⇒ Object
Sets the value of the
versionattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Ip
Creates a new instance of the OvirtSDK4::Ip class.
7218 7219 7220 7221 7222 7223 7224 |
# File 'lib/ovirtsdk4/types.rb', line 7218 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.
7229 7230 7231 7232 7233 7234 7235 |
# File 'lib/ovirtsdk4/types.rb', line 7229 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.
7135 7136 7137 |
# File 'lib/ovirtsdk4/types.rb', line 7135 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address attribute.
7144 7145 7146 |
# File 'lib/ovirtsdk4/types.rb', line 7144 def address=(value) @address = value end |
#gateway ⇒ String
Returns the value of the gateway attribute.
7153 7154 7155 |
# File 'lib/ovirtsdk4/types.rb', line 7153 def gateway @gateway end |
#gateway=(value) ⇒ Object
Sets the value of the gateway attribute.
7162 7163 7164 |
# File 'lib/ovirtsdk4/types.rb', line 7162 def gateway=(value) @gateway = value end |
#hash ⇒ Object
Generates a hash value for this object.
7240 7241 7242 7243 7244 7245 7246 |
# File 'lib/ovirtsdk4/types.rb', line 7240 def hash super + @address.hash + @gateway.hash + @netmask.hash + @version.hash end |
#netmask ⇒ String
Returns the value of the netmask attribute.
7171 7172 7173 |
# File 'lib/ovirtsdk4/types.rb', line 7171 def netmask @netmask end |
#netmask=(value) ⇒ Object
Sets the value of the netmask attribute.
7180 7181 7182 |
# File 'lib/ovirtsdk4/types.rb', line 7180 def netmask=(value) @netmask = value end |
#version ⇒ IpVersion
Returns the value of the version attribute.
7189 7190 7191 |
# File 'lib/ovirtsdk4/types.rb', line 7189 def version @version end |
#version=(value) ⇒ Object
Sets the value of the version attribute.
7198 7199 7200 |
# File 'lib/ovirtsdk4/types.rb', line 7198 def version=(value) @version = value end |