Sha256: 02994f2730c68d65daea5aeceee61720dc5a82c421e4f4f1db53cb8d0d3690c2
Contents?: true
Size: 406 Bytes
Versions: 29
Compression:
Stored size: 406 Bytes
Contents
module Juggernaut class Message attr_accessor :id attr_accessor :signature attr_accessor :body attr_reader :created_at def initialize(id, body, signature) @id = id @body = body @signature = signature @created_at = Time.now end def to_s { :id => @id.to_s, :body => @body, :signature => @signature }.to_json end end end
Version data entries
29 entries across 29 versions & 11 rubygems