qbantek/freshdesk_apiclient

View on GitHub
lib/freshdesk_apiclient.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true
require 'core_extensions/object/class_name'
require 'core_extensions/string/camelize'

require 'freshdesk_apiclient/version'
require 'freshdesk_apiclient/utils/loggeable'
require 'freshdesk_apiclient/rest/model_factory'
require 'freshdesk_apiclient/rest/resources'
require 'freshdesk_apiclient/rest/tickets'
require 'freshdesk_apiclient/rest/client'

module FreshdeskApiclient
  def self.domain
    @domain
  end

  def self.domain=(domain)
    @domain = domain
  end

  def self.username_or_api_key
    @username_or_api_key
  end

  def self.username_or_api_key=(username_or_api_key)
    @username_or_api_key = username_or_api_key
  end

  def self.password
    @password ||= 'X'
  end

  def self.password=(password)
    @password = password
  end

  def self.logger
    @logger ||= nil
  end

  def self.logger=(logger)
    @logger = logger
  end
end