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



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

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

Instance Method Details

#destroy!Object



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

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