Sha256: 0df83529c5219ef11a8011fdd519b56182a1b5008b5fce5521015b2fc55505c5

Contents?: true

Size: 641 Bytes

Versions: 5

Compression:

Stored size: 641 Bytes

Contents

# frozen_string_literal: true

require 'fog/core/model'

module Fog
  module DNS
    class PowerDNS
      class Record < Fog::Model
        # TODO: Needs work to comply with powerdns api
        identity :name

        attribute :content
        attribute :ttl
        attribute :type
        attribute :disabled
        attribute :set_ptr

        def initialize(attributes = {})
          super
        end

        def domain
          name
        end

        def destroy
          # service.delete_record(id)
          # TODO: maybe hack our own delete? this does nothing for now
          true
        end
      end
    end
  end
end

Version data entries

5 entries across 3 versions & 2 rubygems

Version Path
fog-powerdns-0.2.1 lib/fog/dns/powerdns/models/record.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-powerdns-0.2.0/lib/fog/dns/powerdns/models/record.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-powerdns-0.2.0/lib/fog/dns/powerdns/models/record.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-powerdns-0.2.0/lib/fog/dns/powerdns/models/record.rb
fog-powerdns-0.2.0 lib/fog/dns/powerdns/models/record.rb