module Zendesk2
welcome
Constants
- USER_AGENT
- VERSION
Public Class Methods
blank?(string)
click to toggle source
# File lib/zendesk2.rb, line 39 def self.blank?(string) string.nil? || string == '' end
defaults()
click to toggle source
# File lib/zendesk2.rb, line 26 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
stringify_keys(hash)
click to toggle source
# File lib/zendesk2.rb, line 35 def self.stringify_keys(hash) hash.inject({}) { |r, (k, v)| r.merge(k.to_s => v) } end