Sha256: daa01709b98289ef4b3238977fb6f94df96311dd5de94ce715e2eec29bc014bd

Contents?: true

Size: 322 Bytes

Versions: 6

Compression:

Stored size: 322 Bytes

Contents

# frozen_string_literal: true

module Influxer
  module ActiveModel3
    # Replacement of ActiveModel::Model for ActiveModel 3
    module Model
      def initialize(attributes = {})
        attributes&.each do |attr, value|
          public_send("#{attr}=", value)
        end

        super()
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
influxer-2.0.0 lib/influxer/metrics/active_model3/model.rb
influxer-1.4.0 lib/influxer/metrics/active_model3/model.rb
influxer-1.3.0 lib/influxer/metrics/active_model3/model.rb
influxer-1.2.2 lib/influxer/metrics/active_model3/model.rb
influxer-1.2.1 lib/influxer/metrics/active_model3/model.rb
influxer-1.2.0 lib/influxer/metrics/active_model3/model.rb