Sha256: 0240e50a10087b541122e0cd4ca077bb091e775be1dd3b2c1c5ba569a15976cc

Contents?: true

Size: 287 Bytes

Versions: 6

Compression:

Stored size: 287 Bytes

Contents

require 'concurrent/atomics'

class TestView < Peek::Views::View
  class << self
    attr_accessor :counter
  end
  self.counter = Concurrent::AtomicFixnum.new

  def results
    {
      number: self.class.counter.increment
    }
  end

  def partial_path
    "peek/test_view"
  end
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/peek-1.1.0/test/dummy/lib/test_view.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/peek-1.1.0/test/dummy/lib/test_view.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/peek-1.1.0/test/dummy/lib/test_view.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/peek-1.1.0/test/dummy/lib/test_view.rb
peek-1.1.0 test/dummy/lib/test_view.rb
gitlab-peek-0.0.1 test/dummy/lib/test_view.rb