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.0.0 lib/fog/dns/google/mock.rb
fog-google-0.6.0 lib/fog/dns/google/mock.rb
fog-google-0.5.5 lib/fog/dns/google/mock.rb
fog-google-0.5.4 lib/fog/dns/google/mock.rb
fog-google-0.5.3 lib/fog/dns/google/mock.rb
fog-google-0.5.2 lib/fog/dns/google/mock.rb
fog-google-0.5.1 lib/fog/dns/google/mock.rb
fog-google-0.5.0 lib/fog/dns/google/mock.rb
fog-google-0.4.2 lib/fog/dns/google/mock.rb
fog-google-0.4.1 lib/fog/dns/google/mock.rb
fog-google-0.4.0 lib/fog/dns/google/mock.rb
fog-google-0.3.2 lib/fog/dns/google/mock.rb
fog-google-0.3.1 lib/fog/dns/google/mock.rb
fog-google-0.3.0 lib/fog/dns/google/mock.rb