Sha256: ed1046c1549b987ec9d0659548e05dd0c3849feec81bd414179644d427e0512d

Contents?: true

Size: 670 Bytes

Versions: 6

Compression:

Stored size: 670 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(GeoConcerns::Messaging.geoblacklight_client)
      end

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

Version data entries

6 entries across 6 versions & 1 rubygems

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