Module: LocoRb::Api::Export
- Included in:
- Client
- Defined in:
- lib/loco-rb/api/export.rb
Constant Summary collapse
- PATH =
'export'
Instance Method Summary collapse
Instance Method Details
#export_locale(options = {locale: 'en', ext: 'json'}) ⇒ Object
6 7 8 9 |
# File 'lib/loco-rb/api/export.rb', line 6 def export_locale(={locale: 'en', ext: 'json'}) response = get("#{PATH}/locale/#{options[:locale]}.#{options[:ext]}") LocoRb::Resource::Locale.new(response.data, response.headers, 'locale').table end |