Class: DeepL::Requests::TranslationMemory::FindJob
- Defined in:
- lib/deepl/requests/translation_memory/find_job.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#job_id ⇒ Object
readonly
Returns the value of attribute job_id.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(api, job_id, options = {}) ⇒ FindJob
constructor
A new instance of FindJob.
- #request ⇒ Object
- #to_s ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(api, job_id, options = {}) ⇒ FindJob
Returns a new instance of FindJob.
12 13 14 15 |
# File 'lib/deepl/requests/translation_memory/find_job.rb', line 12 def initialize(api, job_id, = {}) super(api, ) @job_id = job_id end |
Instance Attribute Details
#job_id ⇒ Object (readonly)
Returns the value of attribute job_id.
10 11 12 |
# File 'lib/deepl/requests/translation_memory/find_job.rb', line 10 def job_id @job_id end |
Instance Method Details
#request ⇒ Object
17 18 19 |
# File 'lib/deepl/requests/translation_memory/find_job.rb', line 17 def request build_job(*execute_request_with_retries(get_request)) end |
#to_s ⇒ Object
21 22 23 |
# File 'lib/deepl/requests/translation_memory/find_job.rb', line 21 def to_s "GET #{uri.request_uri}" end |