Class: ZendeskAPI::HelpCenter::Article::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



92
93
94
95
# File 'lib/zendesk_api/help_center.rb', line 92

def initialize(client, attributes = {})
  attributes['article_id'] ||= attributes.delete('source_id')
  super
end

Instance Method Details

#destroy!Object



97
98
99
100
101
# File 'lib/zendesk_api/help_center.rb', line 97

def destroy!
  super do |req|
    req.path = @client.config.url + '/help_center/translations/' + id.to_s
  end
end