Sha256: 40c8ccdd5a8bd8e066423c22dafb9c71a15bef0111db4644a824d998b09b3666

Contents?: true

Size: 474 Bytes

Versions: 2

Compression:

Stored size: 474 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def get_global_address(_address_name)
          Fog::Mock.not_implemented
        end
      end

      class Real
        def get_global_address(address_name)
          api_method = @compute.global_addresses.get
          parameters = {
            "project" => @project,
            "address" => address_name
          }
          request(api_method, parameters)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-google-0.6.0 lib/fog/compute/google/requests/get_global_address.rb
fog-google-0.5.5 lib/fog/compute/google/requests/get_global_address.rb