Sha256: 78de8eb111b7eaf8cc8b19d36062d4af848abdb930d3f0090c5451b5cb89c35c
Contents?: true
Size: 226 Bytes
Versions: 2
Compression:
Stored size: 226 Bytes
Contents
require 'json' class ApplicationMessage attr_accessor :metrics, :uid, :ts def to_json msg = Hash.new msg[:uid] = @uid msg[:metrics] = @metrics msg[:ts] = Time.now.strftime('%s') msg.to_json end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simplecov-coverboard-0.1.1 | lib/api/application_message.rb |
simplecov-coverboard-0.1.0 | lib/api/application_message.rb |