Sha256: d8d222c74a9fb9e8a58fe8889db9f914be0daeb0338165888e9d6c071158db1a

Contents?: true

Size: 431 Bytes

Versions: 20

Compression:

Stored size: 431 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def get_forwarding_rule(_rule, _region)
          Fog::Mock.not_implemented
        end
      end

      class Real
        def get_forwarding_rule(rule, region)
          if region.start_with? "http"
            region = region.split("/")[-1]
          end
          @compute.get_forwarding_rule(@project, region, rule)
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
fog-google-1.9.1 lib/fog/compute/google/requests/get_forwarding_rule.rb
fog-google-1.9.0 lib/fog/compute/google/requests/get_forwarding_rule.rb
fog-google-1.8.2 lib/fog/compute/google/requests/get_forwarding_rule.rb
fog-google-1.8.1 lib/fog/compute/google/requests/get_forwarding_rule.rb
fog-google-1.8.0 lib/fog/compute/google/requests/get_forwarding_rule.rb
fog-google-1.7.1 lib/fog/compute/google/requests/get_forwarding_rule.rb
fog-google-1.7.0 lib/fog/compute/google/requests/get_forwarding_rule.rb
fog-google-1.6.0 lib/fog/compute/google/requests/get_forwarding_rule.rb
fog-google-1.5.0 lib/fog/compute/google/requests/get_forwarding_rule.rb
fog-google-1.4.0 lib/fog/compute/google/requests/get_forwarding_rule.rb
fog-google-1.3.3 lib/fog/compute/google/requests/get_forwarding_rule.rb
fog-google-1.3.2 lib/fog/compute/google/requests/get_forwarding_rule.rb
fog-google-1.3.1 lib/fog/compute/google/requests/get_forwarding_rule.rb
fog-google-1.3.0 lib/fog/compute/google/requests/get_forwarding_rule.rb
fog-google-1.2.2 lib/fog/compute/google/requests/get_forwarding_rule.rb
fog-google-1.2.1 lib/fog/compute/google/requests/get_forwarding_rule.rb
fog-google-1.2.0 lib/fog/compute/google/requests/get_forwarding_rule.rb
fog-google-1.1.0 lib/fog/compute/google/requests/get_forwarding_rule.rb
fog-google-1.0.1 lib/fog/compute/google/requests/get_forwarding_rule.rb
fog-google-1.0.0 lib/fog/compute/google/requests/get_forwarding_rule.rb