Sha256: 122bc59890a13e1947aa6d633516117d34ba99c52aed94f3bd834fb58bfbbcbe

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 Bytes

Contents

# -*- encoding: utf-8 -*-
module Simplenet
  module Client
    class Switch < Base
      def initialize(url)
        @url     = url
        @fullurl = "#{url}/switches"
      end

      def create(name, mac, address, type="openvswitch")
        simplenet_post(@fullurl, {
          :name       => name,
          :mac        => mac,
          :address    => address,
          :model_type => type
        })
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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