Sha256: d5139861e72a75c54aa36150a6a6da006f142a55ed8a8867cdc835b5dbd30326

Contents?: true

Size: 438 Bytes

Versions: 8

Compression:

Stored size: 438 Bytes

Contents

module GeoConcerns
  class EventsGenerator
    class BaseEventsGenerator
      def initialize(messaging_client)
        @messaging_client = messaging_client
      end

      private

        def base_message(type, record)
          {
            "id" => record.id,
            "event" => type
          }
        end

        def publish_message(message)
          @messaging_client.publish(message.to_json)
        end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
geo_concerns-0.3.4 app/services/geo_concerns/events_generator/base_events_generator.rb
geo_concerns-0.3.3 app/services/geo_concerns/events_generator/base_events_generator.rb
geo_concerns-0.3.2 app/services/geo_concerns/events_generator/base_events_generator.rb
geo_concerns-0.3.1 app/services/geo_concerns/events_generator/base_events_generator.rb
geo_concerns-0.3.0 app/services/geo_concerns/events_generator/base_events_generator.rb
geo_concerns-0.2.0 app/services/geo_concerns/events_generator/base_events_generator.rb
geo_concerns-0.1.1 app/services/geo_concerns/events_generator/base_events_generator.rb
geo_concerns-0.1.0 app/services/geo_concerns/events_generator/base_events_generator.rb