Class: Uploadcare::Rails::FilesCountExtractor
- Inherits:
-
Object
- Object
- Uploadcare::Rails::FilesCountExtractor
- Defined in:
- lib/uploadcare/rails/services/files_count_extractor.rb
Overview
A class extracting the files count param of a file group from a group ID.
Class Method Summary collapse
Class Method Details
.call(input_str) ⇒ Object
8 9 10 |
# File 'lib/uploadcare/rails/services/files_count_extractor.rb', line 8 def call(input_str) input_str.split('~').last if input_str.present? end |