Class: OvirtSDK4::Ip
- Inherits:
-
Struct
- Object
- Struct
- OvirtSDK4::Ip
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (String) address
Returns the value of the
address
attribute. -
- (Object) address=(value)
Sets the value of the
address
attribute. -
- (String) gateway
Returns the value of the
gateway
attribute. -
- (Object) gateway=(value)
Sets the value of the
gateway
attribute. -
- (Ip) initialize(opts = {})
constructor
Creates a new instance of the Ip class.
-
- (String) netmask
Returns the value of the
netmask
attribute. -
- (Object) netmask=(value)
Sets the value of the
netmask
attribute. -
- (IpVersion) version
Returns the value of the
version
attribute. -
- (Object) version=(value)
Sets the value of the
version
attribute.
Methods included from Type
Constructor Details
- (Ip) initialize(opts = {})
Creates a new instance of the OvirtSDK4::Ip class.
4446 4447 4448 4449 4450 4451 4452 |
# File 'lib/ovirtsdk4/types.rb', line 4446 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
- (String) address
Returns the value of the address
attribute.
4363 4364 4365 |
# File 'lib/ovirtsdk4/types.rb', line 4363 def address return @address end |
- (Object) address=(value)
Sets the value of the address
attribute.
4372 4373 4374 |
# File 'lib/ovirtsdk4/types.rb', line 4372 def address=(value) @address = value end |
- (String) gateway
Returns the value of the gateway
attribute.
4381 4382 4383 |
# File 'lib/ovirtsdk4/types.rb', line 4381 def gateway return @gateway end |
- (Object) gateway=(value)
Sets the value of the gateway
attribute.
4390 4391 4392 |
# File 'lib/ovirtsdk4/types.rb', line 4390 def gateway=(value) @gateway = value end |
- (String) netmask
Returns the value of the netmask
attribute.
4399 4400 4401 |
# File 'lib/ovirtsdk4/types.rb', line 4399 def netmask return @netmask end |
- (Object) netmask=(value)
Sets the value of the netmask
attribute.
4408 4409 4410 |
# File 'lib/ovirtsdk4/types.rb', line 4408 def netmask=(value) @netmask = value end |
- (IpVersion) version
Returns the value of the version
attribute.
4417 4418 4419 |
# File 'lib/ovirtsdk4/types.rb', line 4417 def version return @version end |
- (Object) version=(value)
Sets the value of the version
attribute.
4426 4427 4428 |
# File 'lib/ovirtsdk4/types.rb', line 4426 def version=(value) @version = value end |