Class: ZendeskAPI::HelpCenter::HcCategory::Translation

Inherits:
DataResource
  • Object
show all
Extended by:
Read
Includes:
Create, Destroy, Update
Defined in:
lib/zendesk_api/help_center.rb

Instance Method Summary collapse

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