Sha256: 9eddcd52db986511ff7a0ebda0d3d204b6d50c1f384f0335112c15f11cbd68f9

Contents?: true

Size: 619 Bytes

Versions: 8

Compression:

Stored size: 619 Bytes

Contents

module Fog
  module Brightbox
    class Compute
      class Real

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

      end

      class Mock

        def get_load_balancer(identifier, options = {})
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
fog-0.5.1 lib/fog/compute/requests/brightbox/get_load_balancer.rb
fog-0.5.0 lib/fog/compute/requests/brightbox/get_load_balancer.rb
phpfog-fog-0.4.1.3 lib/fog/compute/requests/brightbox/get_load_balancer.rb
phpfog-fog-0.4.1.2 lib/fog/compute/requests/brightbox/get_load_balancer.rb
phpfog-fog-0.4.1.1 lib/fog/compute/requests/brightbox/get_load_balancer.rb
phpfog-fog-0.4.1 lib/fog/compute/requests/brightbox/get_load_balancer.rb
fog-0.4.1 lib/fog/compute/requests/brightbox/get_load_balancer.rb
fog-0.4.0 lib/fog/brightbox/requests/compute/get_load_balancer.rb