Sha256: 00aeae7f83bb23ea16687f9607ff49d2b28d2f252a6d27918daa3ce1397abf04
Contents?: true
Size: 363 Bytes
Versions: 1
Compression:
Stored size: 363 Bytes
Contents
# -*- encoding: utf-8 -*- module Simplenet module Client class Zone < Base def initialize(url) @url = url @fullurl = "#{url}/zones" end def create(datacenter_id, name) simplenet_post(@fullurl, { :name => name, :datacenter_id => datacenter_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/zone.rb |