Sha256: 2fb9794128744bb0d25669680adfdea5040fa9fdc058f065d8f1ea518385a57d

Contents?: true

Size: 432 Bytes

Versions: 3

Compression:

Stored size: 432 Bytes

Contents

# frozen_string_literal: true

module LightweightAttributes
  class AttributeSet
    class Builder
      attr_reader :types, :default_attributes

      def initialize(types, default_attributes = {})
        @types = types
        @default_attributes = default_attributes
      end

      def build_from_database(values = {}, _additional_types = {})
        LightweightAttributes::AttributeSet.new values
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lightweight_attributes-0.2.0 lib/lightweight_attributes/attribute_set/builder.rb
lightweight_attributes-0.1.1 lib/lightweight_attributes/attribute_set/builder.rb
lightweight_attributes-0.1.0 lib/lightweight_attributes/attribute_set/builder.rb