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



67
68
69
70
# File 'lib/zendesk_api/help_center.rb', line 67

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

Instance Method Details

#destroy!Object



72
73
74
75
76
# File 'lib/zendesk_api/help_center.rb', line 72

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