Sha256: 4998d8b9d3c44ac664e63855d90e1f7c83ee94de60e2bf7462fe076ba3a9a858

Contents?: true

Size: 325 Bytes

Versions: 8

Compression:

Stored size: 325 Bytes

Contents

module SearchKit
  module Models
    class Event
      include Virtus.model

      attribute :id
      attribute :channel
      attribute :state
      attribute :payload, Hash

      def initialize(event_data = {})
        attributes = event_data.fetch(:attributes, {})
        super(attributes)
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
search-kit-0.0.10 lib/search_kit/models/event.rb
search-kit-0.0.9 lib/search_kit/models/event.rb
search-kit-0.0.8 lib/search_kit/models/event.rb
search-kit-0.0.7 lib/search_kit/models/event.rb
search-kit-0.0.6 lib/search_kit/models/event.rb
search-kit-0.0.5 lib/search_kit/models/event.rb
search-kit-0.0.4 lib/search_kit/models/event.rb
search-kit-0.0.3 lib/search_kit/models/event.rb