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.



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

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.



140
141
142
# File 'lib/vagrant-openstack-provider/client/domain.rb', line 140

def cidr
  @cidr
end

#enable_dhcpObject

Returns the value of attribute enable_dhcp.



141
142
143
# File 'lib/vagrant-openstack-provider/client/domain.rb', line 141

def enable_dhcp
  @enable_dhcp
end

#network_idObject

Returns the value of attribute network_id.



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

def network_id
  @network_id
end