Class: DeepL::Requests::StyleProfile::Destroy
- Defined in:
- lib/deepl/requests/style_profile/destroy.rb
Constant Summary
Constants inherited from Base
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 collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(api, id, options = {}) ⇒ Destroy
constructor
A new instance of Destroy.
- #request ⇒ Object
- #to_s ⇒ Object
Methods inherited from Base
accepted_options, accepts_options, #details, inherited, validate_options!
Constructor Details
#initialize(api, id, options = {}) ⇒ Destroy
Returns a new instance of Destroy.
12 13 14 15 |
# File 'lib/deepl/requests/style_profile/destroy.rb', line 12 def initialize(api, id, = {}) super(api, ) @id = style_profile_id(id) end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
10 11 12 |
# File 'lib/deepl/requests/style_profile/destroy.rb', line 10 def id @id end |
Instance Method Details
#request ⇒ Object
17 18 19 20 |
# File 'lib/deepl/requests/style_profile/destroy.rb', line 17 def request execute_request_with_retries(delete_request) id end |
#to_s ⇒ Object
22 23 24 |
# File 'lib/deepl/requests/style_profile/destroy.rb', line 22 def to_s "DELETE #{uri.request_uri}" end |