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

Version Path
DefV-juggernaut-0.5.7.2 lib/juggernaut/message.rb
Flamefork-juggernaut-0.5.9 lib/juggernaut/message.rb
dima-exe-juggernaut-0.5.9.1 lib/juggernaut/message.rb
dima-exe-juggernaut-0.5.9.22 lib/juggernaut/message.rb
dima-exe-juggernaut-0.5.9.23 lib/juggernaut/message.rb
dima-exe-juggernaut-0.5.9.24 lib/juggernaut/message.rb
dima-exe-juggernaut-0.5.9.25 lib/juggernaut/message.rb
dima-exe-juggernaut-0.5.9 lib/juggernaut/message.rb
hubertlepicki-juggernaut-0.5.9 lib/juggernaut/message.rb
maccman-juggernaut-0.5.9 lib/juggernaut/message.rb
ripta-juggernaut-0.5.8 lib/juggernaut/message.rb
tilleryj-juggernaut-0.5.9.1 lib/juggernaut/message.rb
umka_juggernaut-0.0.1 lib/juggernaut/message.rb
M4D-juggernaut-0.5.9.2 lib/juggernaut/message.rb
M4D-juggernaut-0.5.9.1 lib/juggernaut/message.rb
M4D-juggernaut-0.5.9 lib/juggernaut/message.rb
juggernaut_rails-0.6.2 lib/juggernaut/message.rb
juggernaut_rails-0.6.1 lib/juggernaut/message.rb
juggernaut_rails-0.6.0 lib/juggernaut/message.rb
juggernaut_rails-0.5.9 lib/juggernaut/message.rb