Sha256: 6f9b04cdde0c25d49496aa3caf579870f2026b174f17480f528ed8ff78f3d3f9

Contents?: true

Size: 943 Bytes

Versions: 2

Compression:

Stored size: 943 Bytes

Contents

module Lumberg
  module Cpanel
    # Public: Allows users to edit domain keys
    class DomainKeys < Base
      def self.api_module ; "DKIMUI" ; end

      # Public: Install DomainKeys for your cPanel account
      #
      # Returns Hash API response
      def add
        perform_request({ :api_function => "install" })
      end

      # Public: Remove DomainKeys corresponding to your domain
      #
      # Returns Hash API response
      def remove
        perform_request({ :api_function => "uninstall" })
      end

      # Public: Check to see if your domain has DomainKeys installed
      #
      # Returns Hash API response
      def installed
        perform_request({ :api_function => "installed" })
      end

      # Public: Check to see if DomainKeys are available on the server
      #
      # Returns Hash API response
      def available
        perform_request({ :api_function => "available" })
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lumberg-2.0.0.pre4 lib/lumberg/cpanel/domain_keys.rb
lumberg-2.0.0.pre3 lib/lumberg/cpanel/domain_keys.rb