madvertise/ruby-druid

View on GitHub
lib/druid/serializable.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Druid
  module Serializable
    def to_hash
      {}
    end

    def to_s
      to_hash.to_s
    end

    def as_json(*a)
      to_hash
    end

    def to_json(*a)
      to_hash.to_json(*a)
    end
  end
end