Sha256: f7638a4055235b7276e8550d28443730129cac5647993261e2f187ab9a76f765

Contents?: true

Size: 404 Bytes

Versions: 8

Compression:

Stored size: 404 Bytes

Contents

# frozen_string_literal: true

module CoreDns
  class Domain
    attr_reader :namespace

    def initialize(client, hostname = "")
      @namespace = hostname
      @client = client
    end

    def get
      raise NotImplementedError, ".get must be implemented in a subclass"
    end

    def add(_values = {})
      raise NotImplementedError, ".add must be implemented in a subclass"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
coredns-1.2.4 lib/domain.rb
coredns-1.2.3 lib/domain.rb
coredns-1.0.3 lib/domain.rb
coredns-1.2.1 lib/domain.rb
coredns-1.2.0 lib/domain.rb
coredns-1.0.2 lib/domain.rb
coredns-1.0.1 lib/domain.rb
coredns-1.0 lib/domain.rb