Sha256: 1c43a96173f218e1b2e09315247fcc640ba30c588f5abeb710c7a667be7ef75b

Contents?: true

Size: 287 Bytes

Versions: 29

Compression:

Stored size: 287 Bytes

Contents

module NCore
  module Count
    extend ActiveSupport::Concern

    module ClassMethods
      def count(params={})
        params = parse_request_params(params)
        parsed, _ = request(:get, "#{resource_path}/count", params)
        parsed[:data][:count]
      end
    end

  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
ncore-3.12.0 lib/ncore/methods/count.rb
ncore-3.11.0 lib/ncore/methods/count.rb
ncore-3.10.0 lib/ncore/methods/count.rb
ncore-3.9.1 lib/ncore/methods/count.rb
ncore-3.9.0 lib/ncore/methods/count.rb
ncore-3.8.1 lib/ncore/methods/count.rb
ncore-3.8.0 lib/ncore/methods/count.rb
ncore-3.7.1 lib/ncore/methods/count.rb
ncore-3.7.0 lib/ncore/methods/count.rb
ncore-3.6.2 lib/ncore/methods/count.rb
ncore-3.6.1 lib/ncore/methods/count.rb
ncore-3.6.0 lib/ncore/methods/count.rb
ncore-3.5.2 lib/ncore/methods/count.rb
ncore-3.5.1 lib/ncore/methods/count.rb
ncore-3.5.0 lib/ncore/methods/count.rb
ncore-3.4.4 lib/ncore/methods/count.rb
ncore-3.4.3 lib/ncore/methods/count.rb
ncore-3.4.2 lib/ncore/methods/count.rb
ncore-3.4.1 lib/ncore/methods/count.rb
ncore-3.4.0 lib/ncore/methods/count.rb