koleksiuk/dry-elastic_model

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

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Dry
  module ElasticModel
    module TypeOptions
      class ScaledFloat < Numeric
        attribute :scaling_factor, Types::Integer

        def to_h
          attributes
        end
      end
    end
  end
end