Module: Processor

Defined in:
lib/localio/processor.rb

Class Method Summary collapse

Class Method Details

.load_localizables(platform_options, service, options) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/localio/processor.rb', line 6

def self.load_localizables(platform_options, service, options)
  case service
    when :google_drive
      GoogleDriveProcessor.load_localizables platform_options, options
    when :xls
      XlsProcessor.load_localizables platform_options, options
    when :xlsx
      XlsxProcessor.load_localizables platform_options, options
    else
      raise ArgumentError, 'Unsupported service! Try with :google_drive, :xlsx or :xls in the source argument'
  end
end