Sha256: c277d5506feeda351d2b0135d767c811192b727372f35453a4f563987d1f8f3f

Contents?: true

Size: 361 Bytes

Versions: 7

Compression:

Stored size: 361 Bytes

Contents

# frozen_string_literal: true

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

        super()
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
influxer-1.1.6 lib/influxer/metrics/active_model3/model.rb
influxer-1.1.5 lib/influxer/metrics/active_model3/model.rb
influxer-1.1.4 lib/influxer/metrics/active_model3/model.rb
influxer-1.1.3 lib/influxer/metrics/active_model3/model.rb
influxer-1.1.2 lib/influxer/metrics/active_model3/model.rb
influxer-1.1.1 lib/influxer/metrics/active_model3/model.rb
influxer-1.1.0 lib/influxer/metrics/active_model3/model.rb