Sha256: 7a05fa65ab3dd60286b569a248191ec9f99dd24c41fcab1e07c182c8aed087e1

Contents?: true

Size: 512 Bytes

Versions: 1

Compression:

Stored size: 512 Bytes

Contents

# frozen_string_literal: true

require 'gladwords/schema/attributes_inferrer'

module Gladwords
  class Schema < ROM::Schema
    # AdWords API schema inferrer which derives types from the AdWords
    # service registry.
    #
    # @api public
    class Inferrer < ROM::Schema::Inferrer
      attributes_inferrer lambda { |schema, gateway, _options|
        # builder = TypeBuilder[gateway.database_type]
        inferrer = AttributesInferrer.new
        inferrer.call(schema, gateway)
      }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gladwords-1.0.1 lib/gladwords/schema/inferrer.rb