Sha256: 1916346d62e2ae946c9d08caadf1d772ea9d7424a9d80f4b9e077fb31204b6f3

Contents?: true

Size: 706 Bytes

Versions: 54

Compression:

Stored size: 706 Bytes

Contents

module Fog
  module DNS
    class Google
      class Mock
        include Fog::Google::Shared

        def initialize(options)
          shared_initialize(options[:google_project], GOOGLE_DNS_API_VERSION, GOOGLE_DNS_BASE_URL)
        end

        def self.data(_api_version)
          @data ||= {}
        end

        def self.reset
          @data = nil
        end

        def data(project = @project)
          self.class.data(api_version)[project] ||= {
            :managed_zones => {},
            :resource_record_sets => {},
            :changes => {}
          }
        end

        def reset_data
          self.class.data(api_version).delete(@project)
        end
      end
    end
  end
end

Version data entries

54 entries across 54 versions & 2 rubygems

Version Path
fog-google-1.24.1 lib/fog/dns/google/mock.rb
fog-google-1.24.0 lib/fog/dns/google/mock.rb
fog-google-1.23.0 lib/fog/dns/google/mock.rb
fog-google-1.22.0 lib/fog/dns/google/mock.rb
fog-google-1.21.1 lib/fog/dns/google/mock.rb
fog-google-1.21.0 lib/fog/dns/google/mock.rb
fog-google-1.20.0 lib/fog/dns/google/mock.rb
fog-google-1.19.0 lib/fog/dns/google/mock.rb
fog-google-1.18.0 lib/fog/dns/google/mock.rb
fog-google-1.17.0 lib/fog/dns/google/mock.rb
fog-google-1.16.1 lib/fog/dns/google/mock.rb
fog-google-1.16.0 lib/fog/dns/google/mock.rb
fog-google-1.15.0 lib/fog/dns/google/mock.rb
fog-google-1.14.0 lib/fog/dns/google/mock.rb
gitlab-fog-google-1.14.0 lib/fog/dns/google/mock.rb
fog-google-1.13.0 lib/fog/dns/google/mock.rb
gitlab-fog-google-1.13.0 lib/fog/dns/google/mock.rb
fog-google-1.12.1 lib/fog/dns/google/mock.rb
fog-google-1.12.0 lib/fog/dns/google/mock.rb
fog-google-1.11.0 lib/fog/dns/google/mock.rb