Sha256: f59a7d9688e2e312f5a1dc595f3adbfddd2a591f6330e296a3bc709b317cb33e

Contents?: true

Size: 836 Bytes

Versions: 15

Compression:

Stored size: 836 Bytes

Contents

module Lumberg
  module Cpanel
    class Support < Base
      def self.api_module; "Contactus"; end

      # Public: Send a support request.
      #
      # options - Hash options for API call params (default: {}):
      #  :email   - String destination email address.
      #  :issue   - String brief explantation of issue (body text).
      #  :subject - String subject line.
      #
      # Returns Hash API response.
      def open_ticket(options = {})
        perform_request({
          api_function: "sendcontact"
        }.merge(options))
      end

      # Public: Check if you can open a support ticket, or if you are able to
      # contact your hosting provider through Cpanel
      #
      # Returns Hash API response
      def contactable
        perform_request({ api_function: "isenabled" })
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
lumberg-4.1.0 lib/lumberg/cpanel/support.rb
lumberg-4.0.0 lib/lumberg/cpanel/support.rb
lumberg-3.1.0 lib/lumberg/cpanel/support.rb
lumberg-3.0.0 lib/lumberg/cpanel/support.rb
lumberg-2.0.1 lib/lumberg/cpanel/support.rb
lumberg-2.0.0 lib/lumberg/cpanel/support.rb
lumberg-2.0.0.pre20 lib/lumberg/cpanel/support.rb
lumberg-2.0.0.pre18 lib/lumberg/cpanel/support.rb
lumberg-2.0.0.pre15 lib/lumberg/cpanel/support.rb
lumberg-2.0.0.pre12 lib/lumberg/cpanel/support.rb
lumberg-2.0.0.pre9 lib/lumberg/cpanel/support.rb
lumberg-2.0.0.pre8 lib/lumberg/cpanel/support.rb
lumberg-2.0.0.pre7 lib/lumberg/cpanel/support.rb
lumberg-2.0.0.pre6 lib/lumberg/cpanel/support.rb
lumberg-2.0.0.pre5 lib/lumberg/cpanel/support.rb