Sha256: b2422e6c45462aec257c020cadd589accffd509d07d3f74c6d7f8755e1328424

Contents?: true

Size: 302 Bytes

Versions: 1

Compression:

Stored size: 302 Bytes

Contents

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

      def create(subnet_id, ip)
        simplenet_post(@fullurl, {:ip => ip, :subnet_id => subnet_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/ip.rb