Sha256: ed9e57d65d79788eef66b26ff10a9fcc8f983637b4c9ab3cb081273fe1fc33b8

Contents?: true

Size: 485 Bytes

Versions: 1

Compression:

Stored size: 485 Bytes

Contents

module Fog
  module Compute
    class Brightbox
      class Real

        def get_cloud_ip(identifier, options = {})
          return nil if identifier.nil? || identifier == ""
          request(
            :expects  => [200],
            :method   => 'GET',
            :path     => "/1.0/cloud_ips/#{identifier}",
            :headers  => {"Content-Type" => "application/json"},
            :body     => MultiJson.encode(options)
          )
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fog-0.10.0 lib/fog/compute/requests/brightbox/get_cloud_ip.rb