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.3.4 lib/ncore/methods/count.rb
ncore-3.3.3 lib/ncore/methods/count.rb
ncore-3.3.2 lib/ncore/methods/count.rb
ncore-3.3.1 lib/ncore/methods/count.rb
ncore-3.3.0 lib/ncore/methods/count.rb
ncore-3.2.1 lib/ncore/methods/count.rb
ncore-3.2.0 lib/ncore/methods/count.rb
ncore-3.1.0 lib/ncore/methods/count.rb
ncore-3.0.0 lib/ncore/methods/count.rb