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