Class: OvirtSDK4::Vlan

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (Vlan) initialize(opts = {})

Creates a new instance of the OvirtSDK4::Vlan class.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):

  • :id (Integer)

    The value of attribute id.



18565
18566
18567
18568
# File 'lib/ovirtsdk4/types.rb', line 18565

def initialize(opts = {})
  super(opts)
  self.id = opts[:id]
end

Instance Method Details

- (Integer) id

Returns the value of the id attribute.

Returns:

  • (Integer)


18542
18543
18544
# File 'lib/ovirtsdk4/types.rb', line 18542

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (Integer)


18551
18552
18553
# File 'lib/ovirtsdk4/types.rb', line 18551

def id=(value)
  @id = value
end