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

Returns a new instance of Translation.



65
66
67
68
# File 'lib/zendesk_api/help_center.rb', line 65

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

Instance Method Details

#destroy!Object



70
71
72
73
74
# File 'lib/zendesk_api/help_center.rb', line 70

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