lib/deepl/requests/languages.rb in deepl-rb-2.3.1 vs lib/deepl/requests/languages.rb in deepl-rb-2.4.0
- old
+ new
@@ -14,10 +14,12 @@
private
def build_languages(request, response)
data = JSON.parse(response.body)
data.map do |language|
- Resources::Language.new(language['language'], language['name'], request, response)
+ Resources::Language.new(language['language'], language['name'],
+ language['supports_formality'],
+ request, response)
end
end
def path
'languages'