Sha256: 2ff18ed68565264bc3acd6881f8c680b08f6fdce64079d0aa243d22a574457f3
Contents?: true
Size: 243 Bytes
Versions: 2
Compression:
Stored size: 243 Bytes
Contents
module FbGraph module Serialization def to_hash raise "Define #{self.class}#to_hash!" end def to_json hash = self.to_hash hash.delete_if do |k, v| v.blank? end hash.to_json end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fb_graph-1.2.5 | lib/fb_graph/serialization.rb |
fb_graph-1.2.4 | lib/fb_graph/serialization.rb |