Sha256: af30c35a6d4f2d0423ac933499ffca98aa124d4dca6bf42eb4502eea3e753ff8

Contents?: true

Size: 321 Bytes

Versions: 1

Compression:

Stored size: 321 Bytes

Contents

module LocoRb
  module Api
    module Export
      PATH = 'export'

      def export_locale(options={locale: 'en', ext: 'json'})
        response = get("#{PATH}/locale/#{options[:locale]}.#{options[:ext]}")
        LocoRb::Resource::Locale.new(response.data, response.headers, 'locale').table
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
loco-rb-0.1.1 lib/loco-rb/api/export.rb