Sha256: 4751b81632b23b7db0dc20a5f607e0b236037deac628709a4aeb8485aa4f5965
Contents?: true
Size: 495 Bytes
Versions: 6
Compression:
Stored size: 495 Bytes
Contents
module Tabs module Resolution extend self def serialize(resolution, timestamp) resolution_klass(resolution).serialize(timestamp) end def deserialize(resolution, str) resolution_klass(resolution).deserialize(str) end def normalize(resolution, timestamp) resolution_klass(resolution).normalize(timestamp) end private def resolution_klass(resolution) "Tabs::Resolutions::#{resolution.to_s.classify}".constantize end end end
Version data entries
6 entries across 6 versions & 1 rubygems