koleksiuk/dry-elastic_model

View on GitHub
lib/dry/elastic_model/type_options/base.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Dry
  module ElasticModel
    module TypeOptions
      class Base < ::Dry::Struct
        schema schema.strict

        def to_h
          attributes
        end
      end
    end
  end
end