Sha256: 8c4f15dcfa9459520914d738862468dbe3f7e3e0b20e4fcf08c3bb5c703446ce

Contents?: true

Size: 644 Bytes

Versions: 2

Compression:

Stored size: 644 Bytes

Contents

module GeoConcerns
  class EventsGenerator
    delegate :record_created, to: :generators
    delegate :record_deleted, to: :generators
    delegate :record_updated, to: :generators
    delegate :derivatives_created, to: :generators

    def generators
      @generators ||= CompositeGenerator.new(
        geoblacklight_event_generator,
        geoserver_event_generator
      )
    end

    private

      def geoblacklight_event_generator
        GeoblacklightEventGenerator.new(Messaging.geoblacklight_client)
      end

      def geoserver_event_generator
        GeoserverEventGenerator.new(Messaging.geoserver_client)
      end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
geo_concerns-0.1.1 app/services/geo_concerns/events_generator.rb
geo_concerns-0.1.0 app/services/geo_concerns/events_generator.rb