Module: Crowdin::ApiResources::CustomSpellcheckers
- Defined in:
- lib/crowdin-api/api_resources/custom_spellcheckers.rb
Instance Method Summary collapse
- #get_custom_spellchecker(custom_spellchecker_id) ⇒ Object
- #list_custom_spellcheckers(query = {}) ⇒ Object
Instance Method Details
#get_custom_spellchecker(custom_spellchecker_id) ⇒ Object
24 25 26 27 28 29 30 31 32 33 |
# File 'lib/crowdin-api/api_resources/custom_spellcheckers.rb', line 24 def get_custom_spellchecker(custom_spellchecker_id) enterprise_mode? || raise_only_for_enterprise_mode_error request = Web::Request.new( connection, :get, "#{config.target_api_url}/custom-spellcheckers/#{custom_spellchecker_id}" ) Web::SendRequest.new(request).perform end |
#list_custom_spellcheckers(query = {}) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/crowdin-api/api_resources/custom_spellcheckers.rb', line 10 def list_custom_spellcheckers(query = {}) enterprise_mode? || raise_only_for_enterprise_mode_error request = Web::Request.new( connection, :get, "#{config.target_api_url}/custom-spellcheckers", { params: query } ) Web::SendRequest.new(request).perform end |