Sha256: 49ae8801bb0e126e184a252d39ae7ceca2f08e588bc9e3840e2cfcb2cd891b06

Contents?: true

Size: 434 Bytes

Versions: 1

Compression:

Stored size: 434 Bytes

Contents

# -*- 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simplenet-client-0.2.0 ./lib/simplenet/client/vlan.rb