Sha256: 20c2747d4c7680aa857fb66c1cfbfc86d40f5aa2facb28dab0838ea4d82c4e07
Contents?: true
Size: 245 Bytes
Versions: 3
Compression:
Stored size: 245 Bytes
Contents
module PlausibleApi class Utils def present?(value) !value.nil? && !value.empty? end def blank?(value) !present?(value) end def presence(value) return false if blank?(value) value end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
plausible_api-0.4.2 | lib/plausible_api/utils.rb |
plausible_api-0.4.1 | lib/plausible_api/utils.rb |
plausible_api-0.4 | lib/plausible_api/utils.rb |