Class: LanguageTool::Actions::Languages

Inherits:
Base
  • Object
show all
Defined in:
lib/languagetool/actions/languages.rb

Instance Attribute Summary

Attributes inherited from Base

#api, #options

Instance Method Summary collapse

Methods inherited from Base

#initialize, #safe_run

Constructor Details

This class inherits a constructor from LanguageTool::Actions::Base

Instance Method Details

#runObject



4
5
6
7
8
# File 'lib/languagetool/actions/languages.rb', line 4

def run
  response = RestClient.get uri('languages')
  $languagetool_last_response = response
  Resources::Languages.new JSON.parse(response.body)
end