Class: ZendeskAPI::HelpCenter::HcCategory::Translation
- Inherits:
-
DataResource
- Object
- DataResource
- ZendeskAPI::HelpCenter::HcCategory::Translation
- Extended by:
- Read
- Includes:
- Create, Destroy, Update
- Defined in:
- lib/zendesk_api/help_center.rb
Instance Method Summary collapse
- #destroy! ⇒ Object
-
#initialize(client, attributes = {}) ⇒ Translation
constructor
A new instance of Translation.
Constructor Details
#initialize(client, attributes = {}) ⇒ Translation
Returns a new instance of Translation.
43 44 45 46 |
# File 'lib/zendesk_api/help_center.rb', line 43 def initialize(client, attributes = {}) attributes['category_id'] ||= attributes.delete('source_id') super end |
Instance Method Details
#destroy! ⇒ Object
48 49 50 51 52 |
# File 'lib/zendesk_api/help_center.rb', line 48 def destroy! super do |req| req.path = @client.config.url + '/help_center/translations/' + id.to_s end end |