Sha256: d1fc2542f014245576b541c2a5838698603557e7ddfe588cc4431357ce9af338

Contents?: true

Size: 487 Bytes

Versions: 14

Compression:

Stored size: 487 Bytes

Contents

module GeoConcerns
  module Discovery
    class DocumentBuilder
      class CompositeBuilder
        attr_reader :services

        def initialize(*services)
          @services = services.compact
        end

        # Runs each builder service to build a discovery document.
        # @param [AbstractDocument] discovery document
        def build(document)
          services.each do |service|
            service.build(document)
          end
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
geo_concerns-0.3.4 app/services/geo_concerns/discovery/document_builder/composite_builder.rb
geo_concerns-0.3.3 app/services/geo_concerns/discovery/document_builder/composite_builder.rb
geo_concerns-0.3.2 app/services/geo_concerns/discovery/document_builder/composite_builder.rb
geo_concerns-0.3.1 app/services/geo_concerns/discovery/document_builder/composite_builder.rb
geo_concerns-0.3.0 app/services/geo_concerns/discovery/document_builder/composite_builder.rb
geo_concerns-0.2.0 app/services/geo_concerns/discovery/document_builder/composite_builder.rb
geo_concerns-0.1.1 app/services/geo_concerns/discovery/document_builder/composite_builder.rb
geo_concerns-0.1.0 app/services/geo_concerns/discovery/document_builder/composite_builder.rb
geo_concerns-0.0.10 app/services/geo_concerns/discovery/document_builder/composite_builder.rb
geo_concerns-0.0.9 app/services/geo_concerns/discovery/document_builder/composite_builder.rb
geo_concerns-0.0.8 app/services/geo_concerns/discovery/document_builder/composite_builder.rb
geo_concerns-0.0.7 app/services/geo_concerns/discovery/document_builder/composite_builder.rb
geo_concerns-0.0.6 app/services/geo_concerns/discovery/document_builder/composite_builder.rb
geo_concerns-0.0.5 app/services/geo_concerns/discovery/document_builder/composite_builder.rb