Sha256: d18dfbb5be9a7cb7a6e7b3ca573ef8296142a69ffecb2856163f5c8ad6ccdd75
Contents?: true
Size: 265 Bytes
Versions: 1
Compression:
Stored size: 265 Bytes
Contents
module ChatWork module Converter def hash_compact(hash) hash.reject { |_k, v| v.nil? } end def boolean_to_integer(value) case value when true 1 when false 0 else value end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chatwork-0.8.0 | lib/chatwork/converter.rb |