Class: DeepL::Requests::TranslationMemory::DownloadExport
- Inherits:
-
StorageBase
- Object
- Base
- StorageBase
- DeepL::Requests::TranslationMemory::DownloadExport
- Defined in:
- lib/deepl/requests/translation_memory/download_export.rb
Constant Summary
Constants inherited from Base
Base::MAX_GLOSSARY_IDS, Base::NETWORK_ERRORS, Base::RESPONSE_FORMAT_ERRORS, Base::RETRYABLE_NETWORK_ERRORS, Base::TECHNICAL_HEADERS
Instance Attribute Summary
Attributes inherited from StorageBase
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(api, download_url, output_file) ⇒ DownloadExport
constructor
A new instance of DownloadExport.
- #request ⇒ Object
- #to_s ⇒ Object
Methods inherited from Base
accepted_options, accepts_options, #details, inherited, validate_options!
Constructor Details
#initialize(api, download_url, output_file) ⇒ DownloadExport
Returns a new instance of DownloadExport.
10 11 12 13 |
# File 'lib/deepl/requests/translation_memory/download_export.rb', line 10 def initialize(api, download_url, output_file) super(api, download_url) @output_file = output_file end |
Instance Method Details
#request ⇒ Object
15 16 17 |
# File 'lib/deepl/requests/translation_memory/download_export.rb', line 15 def request extract_file(*execute_request_with_retries(get_request)) end |
#to_s ⇒ Object
19 20 21 |
# File 'lib/deepl/requests/translation_memory/download_export.rb', line 19 def to_s "GET #{uri.request_uri}" end |