Sha256: ace504ea8d8880389ba46541bdb27a9ad4a431b4f5818ce80ff1a5d7d56f7299
Contents?: true
Size: 310 Bytes
Versions: 1
Compression:
Stored size: 310 Bytes
Contents
# -*- encoding: utf-8 -*- module Simplenet module Client class Subnet < Base def initialize(url) @url = url @fullurl = "#{url}/subnets" end def create(vlan_id, cidr) simplenet_post(@fullurl, {:cidr => cidr, :vlan_id => vlan_id}) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simplenet-client-0.2.0 | ./lib/simplenet/client/subnet.rb |