module MessageStore::MessageData

Public Class Methods

included(cls) click to toggle source
# File lib/message_store/message_data.rb, line 3
def self.included(cls)
  cls.class_exec do
    include Schema::DataStructure

    attribute :id, String
    attribute :type, String
    attribute :data, ::Hash
    attribute :metadata, ::Hash

    def ===(other)
      type == other
    end
  end
end

Public Instance Methods

===(other) click to toggle source
# File lib/message_store/message_data.rb, line 12
def ===(other)
  type == other
end