# -*- encoding: utf-8 -*- module Simplenet module Client class Vlan < Base def initialize(url) @url = url @fullurl = "#{url}/vlans" end def create(zone_id, name, vlan_num, type="private_vlan") simplenet_post(@fullurl, { :name => name, :zone_id => zone_id, :type => type, :vlan_num => vlan_num }) end end end end