Class: DeepL::Requests::Glossary::Entries
- Inherits:
-
Base
- Object
- Base
- DeepL::Requests::Glossary::Entries
show all
- Defined in:
- lib/deepl/requests/glossary/entries.rb
Constant Summary
Constants inherited
from Base
Base::MAX_GLOSSARY_IDS
Instance Attribute Summary collapse
Attributes inherited from Base
#api, #options, #response
Instance Method Summary
collapse
Methods inherited from Base
#details
Constructor Details
#initialize(api, id, options = {}) ⇒ Entries
12
13
14
15
|
# File 'lib/deepl/requests/glossary/entries.rb', line 12
def initialize(api, id, options = {})
super(api, options)
@id = id
end
|
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
10
11
12
|
# File 'lib/deepl/requests/glossary/entries.rb', line 10
def id
@id
end
|
Instance Method Details
#request ⇒ Object
17
18
19
|
# File 'lib/deepl/requests/glossary/entries.rb', line 17
def request
build_entries(*execute_request_with_retries(get_request))
end
|
#to_s ⇒ Object
21
22
23
|
# File 'lib/deepl/requests/glossary/entries.rb', line 21
def to_s
"GET #{uri.request_uri}"
end
|