Class: DeepL::Requests::Glossary::LanguagePairs

Inherits:
Base
  • Object
show all
Defined in:
lib/deepl/requests/glossary/language_pairs.rb

Instance Attribute Summary

Attributes inherited from Base

#api, #options, #response

Instance Method Summary collapse

Methods inherited from Base

#details

Constructor Details

#initialize(api, options = {}) ⇒ LanguagePairs

Returns a new instance of LanguagePairs.



10
11
12
# File 'lib/deepl/requests/glossary/language_pairs.rb', line 10

def initialize(api, options = {})
  super
end

Instance Method Details

#requestObject



14
15
16
# File 'lib/deepl/requests/glossary/language_pairs.rb', line 14

def request
  build_language_pair_list(*execute_request_with_retries(get_request))
end

#to_sObject



18
19
20
# File 'lib/deepl/requests/glossary/language_pairs.rb', line 18

def to_s
  "GET #{uri.request_uri}"
end