Sha256: 723bcbdec0669149b77fa0d82dc78f856e0eb721d2e8dd318ae0d807c62fbd7a

Contents?: true

Size: 203 Bytes

Versions: 6

Compression:

Stored size: 203 Bytes

Contents

require 'grand_central/model'
require 'json'

module PowerStrip
  class Message < GrandCentral::Model
    attributes(:channel, :event, :data)

    def to_json(*args)
      to_h.to_json
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
power_strip-1.0.0 lib/power_strip/message.rb
power_strip-0.3.0 lib/power_strip/message.rb
power_strip-0.2.0 lib/power_strip/message.rb
power_strip-0.1.2 lib/power_strip/message.rb
power_strip-0.1.1 lib/power_strip/message.rb
power_strip-0.1.0 lib/power_strip/message.rb