Class: DeepL::Requests::Usage
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 Base
Instance Method Summary collapse
-
#initialize(api, options = {}) ⇒ Usage
constructor
A new instance of Usage.
- #request ⇒ Object
- #to_s ⇒ Object
Methods inherited from Base
accepted_options, accepts_options, #details, inherited, validate_options!
Constructor Details
#initialize(api, options = {}) ⇒ Usage
Returns a new instance of Usage.
9 10 11 |
# File 'lib/deepl/requests/usage.rb', line 9 def initialize(api, = {}) super end |
Instance Method Details
#request ⇒ Object
13 14 15 |
# File 'lib/deepl/requests/usage.rb', line 13 def request build_usage(*execute_request_with_retries(get_request)) end |
#to_s ⇒ Object
17 18 19 |
# File 'lib/deepl/requests/usage.rb', line 17 def to_s "GET #{uri.request_uri}" end |