Sha256: eb1a2991df356f32e30b62cc73097f4083218ccecb02a0fe1270120f52995c09

Contents?: true

Size: 250 Bytes

Versions: 1

Compression:

Stored size: 250 Bytes

Contents

class DummyMetrics < Influxer::Metrics # :nodoc:
  tags :dummy_id, :host
  attributes :user_id

  validates_presence_of :dummy_id, :user_id

  before_write -> { self.time = DateTime.now }

  scope :calc, ->(method, *args) { send(method, *args) }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
influxer-0.3.1 spec/support/metrics/dummy_metrics.rb