Module: Influxer::ActiveModel3::Model

Included in:
Metrics
Defined in:
lib/influxer/metrics/active_model3/model.rb

Overview

Replacement of ActiveModel::Model for ActiveModel 3

Instance Method Summary collapse

Instance Method Details

#initialize(attributes = {}) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/influxer/metrics/active_model3/model.rb', line 7

def initialize(attributes = {})
  if attributes
    attributes.each do |attr, value|
      public_send("#{attr}=", value)
    end
  end

  super()
end