Sha256: e80534699344f570179e30d98fe45b3c95a137a4701d32ff2aa76fadb7aa9f8f

Contents?: true

Size: 320 Bytes

Versions: 14

Compression:

Stored size: 320 Bytes

Contents

# frozen_string_literal: true

module Uploadcare
  module Rails
    # A class extracting the files count param of a file group from a group ID.
    class FilesCountExtractor
      class << self
        def call(input_str)
          input_str.split('~').last if input_str.present?
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
uploadcare-rails-3.4.4 lib/uploadcare/rails/services/files_count_extractor.rb
uploadcare-rails-3.4.3 lib/uploadcare/rails/services/files_count_extractor.rb
uploadcare-rails-3.4.1 lib/uploadcare/rails/services/files_count_extractor.rb
uploadcare-rails-3.4.0 lib/uploadcare/rails/services/files_count_extractor.rb
uploadcare-rails-3.3.4 lib/uploadcare/rails/services/files_count_extractor.rb
uploadcare-rails-3.3.3 lib/uploadcare/rails/services/files_count_extractor.rb
uploadcare-rails-3.3.2.1 lib/uploadcare/rails/services/files_count_extractor.rb
uploadcare-rails-3.3.2 lib/uploadcare/rails/services/files_count_extractor.rb
uploadcare-rails-3.3.1 lib/uploadcare/rails/services/files_count_extractor.rb
uploadcare-rails-3.3.0 lib/uploadcare/rails/services/files_count_extractor.rb
uploadcare-rails-3.2.0 lib/uploadcare/rails/services/files_count_extractor.rb
uploadcare-rails-2.1.1 lib/uploadcare/rails/services/files_count_extractor.rb
uploadcare-rails-2.1.0 lib/uploadcare/rails/services/files_count_extractor.rb
uploadcare-rails-2.0.0 lib/uploadcare/rails/services/files_count_extractor.rb