Sha256: ebbdf5902f14287ebbd8a106f12e95f4c1d568119aee1fbeda71fd6fd859e3aa

Contents?: true

Size: 257 Bytes

Versions: 4

Compression:

Stored size: 257 Bytes

Contents

module NCore
  module Count
    extend ActiveSupport::Concern

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

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ncore-1.2.1 lib/ncore/methods/count.rb
ncore-1.2.0 lib/ncore/methods/count.rb
ncore-1.1.0 lib/ncore/methods/count.rb
ncore-1.0.0 lib/ncore/methods/count.rb