Class: VagrantPlugins::Openstack::Domain::Subnet

Inherits:
Item
  • Object
show all
Defined in:
lib/vagrant-openstack-provider/client/domain.rb

Instance Attribute Summary collapse

Attributes inherited from Item

#id, #name

Instance Method Summary collapse

Methods inherited from Item

#==

Constructor Details

#initialize(id, name, cidr, enable_dhcp, network_id) ⇒ Subnet

Returns a new instance of Subnet.



148
149
150
151
152
153
# File 'lib/vagrant-openstack-provider/client/domain.rb', line 148

def initialize(id, name, cidr, enable_dhcp, network_id)
  @cidr = cidr
  @enable_dhcp = enable_dhcp
  @network_id = network_id
  super(id, name)
end

Instance Attribute Details

#cidrObject

Returns the value of attribute cidr.



144
145
146
# File 'lib/vagrant-openstack-provider/client/domain.rb', line 144

def cidr
  @cidr
end

#enable_dhcpObject

Returns the value of attribute enable_dhcp.



145
146
147
# File 'lib/vagrant-openstack-provider/client/domain.rb', line 145

def enable_dhcp
  @enable_dhcp
end

#network_idObject

Returns the value of attribute network_id.



146
147
148
# File 'lib/vagrant-openstack-provider/client/domain.rb', line 146

def network_id
  @network_id
end