Sha256: b8d55f89f78e36b9c99815e862178228c2f12eb44aa8d2cd2d2b16373d7c28b1

Contents?: true

Size: 910 Bytes

Versions: 12

Compression:

Stored size: 910 Bytes

Contents

require "zendesk2/version"

# dependencies
require 'cistern'
require 'faraday'
require 'faraday_middleware'
require 'jwt'
require 'uri'

# stdlib
require 'forwardable'
require 'logger'
require 'time'
require 'yaml'
require 'securerandom'

module Zendesk2
  def self.defaults
    @defaults ||= begin
                    YAML.load_file(File.expand_path("~/.zendesk2"))
                  rescue ArgumentError, Errno::ENOENT
                    # handle missing home directories or missing file
                    {}
                  end
  end

  def self.stringify_keys(hash)
    hash.inject({}) { |r,(k,v)| r.merge(k.to_s => v) }
  end

  def self.blank?(string)
    string.nil? || string == ""
  end
end

require 'zendesk2/attributes'
require 'zendesk2/error'
require 'zendesk2/searchable'
require 'zendesk2/logger'
require 'zendesk2/paged_collection'
require 'zendesk2/rate_limit'

require 'zendesk2/client'

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
zendesk2-1.7.5 lib/zendesk2.rb
zendesk2-1.7.4 lib/zendesk2.rb
zendesk2-1.7.2 lib/zendesk2.rb
zendesk2-1.7.1 lib/zendesk2.rb
zendesk2-1.7.0 lib/zendesk2.rb
zendesk2-1.6.1 lib/zendesk2.rb
zendesk2-1.5.17 lib/zendesk2.rb
zendesk2-1.5.16 lib/zendesk2.rb
zendesk2-1.5.15 lib/zendesk2.rb
zendesk2-1.5.14 lib/zendesk2.rb
zendesk2-1.5.13 lib/zendesk2.rb
zendesk2-1.5.12 lib/zendesk2.rb