as_json(*)
public
Returns a hash, that will be turned into a JSON
object and represent this object.
# File ext/json/lib/json/add/core.rb, line 48
def as_json(*)
{
JSON.create_id => self.class.name,
's' => tv_sec,
'n' => respond_to?(:tv_nsec) ? tv_nsec : tv_usec * 1000
}
end