Sha256: bb81ad02ea733eb395a5b0bcf0eabedd6702f31f14d03702fcf99512920c41c4

Contents?: true

Size: 277 Bytes

Versions: 4

Compression:

Stored size: 277 Bytes

Contents

require "attractor/reporters/base_reporter"

module Attractor
  class RailsReporter < BaseReporter
    def values(type: "rb")
      @values = @calculators[type].calculate
      @values
    rescue NoMethodError => e
      puts "No calculator for type #{type}"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
attractor-rails-0.2.0 lib/attractor/reporters/rails_reporter.rb
attractor-rails-0.1.2 lib/attractor/reporters/rails_reporter.rb
attractor-rails-0.1.1 lib/attractor/reporters/rails_reporter.rb
attractor-rails-0.1.0 lib/attractor/reporters/rails_reporter.rb