Sha256: 8974a5bf4b6595a70ba98240e1e823247a75ff7787f33e064366b9d8b6c81f1d
Contents?: true
Size: 444 Bytes
Versions: 2
Compression:
Stored size: 444 Bytes
Contents
module Rapporteur # An ActiveModel::Serializer used to serialize the checker data for JSON # rendering. # class Serializer < ActiveModel::Serializer self.root = false attributes :revision, :time # Internal: Converts the checker instance time into UTC to provide a # consistent public representation. # # Returns a Time instance in UTC. # def time object.time.utc end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rapporteur-1.0.1 | lib/rapporteur/serializer.rb |
rapporteur-1.0.0 | lib/rapporteur/serializer.rb |