Sha256: 5fca71d6ea9e69bf678b18dffe61fdcf8a47cceed5358b84a82833a94a558961

Contents?: true

Size: 180 Bytes

Versions: 10

Compression:

Stored size: 180 Bytes

Contents

class UsersMetric < Prosperity::Metric
  scope { User }

  option('with_1') do |scope|
    scope.with_1
  end

  option('no_results') do |scope|
    scope.where("1 = 2")
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
prosperity-0.0.11 spec/dummy/app/prosperity/users_metric.rb
prosperity-0.0.10 spec/dummy/app/prosperity/users_metric.rb
prosperity-0.0.9 spec/dummy/app/prosperity/users_metric.rb
prosperity-0.0.8 spec/dummy/app/prosperity/users_metric.rb
prosperity-0.0.7 spec/dummy/app/prosperity/users_metric.rb
prosperity-0.0.6 spec/dummy/app/prosperity/users_metric.rb
prosperity-0.0.5 spec/dummy/app/prosperity/users_metric.rb
prosperity-0.0.4 spec/dummy/app/prosperity/users_metric.rb
prosperity-0.0.3 spec/dummy/app/prosperity/users_metric.rb
prosperity-0.0.2 spec/dummy/app/prosperity/users_metric.rb