Class: ZendeskAPI::HelpCenter::Article
- Inherits:
-
Resource
- Object
- Resource
- ZendeskAPI::HelpCenter::Article
- Defined in:
- lib/zendesk_api/help_center.rb,
lib/zendesk_api/help_center.rb,
lib/zendesk_api/help_center.rb,
lib/zendesk_api/help_center.rb
Defined Under Namespace
Classes: Translation
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.singular_resource_name ⇒ Object
14 15 16 |
# File 'lib/zendesk_api/help_center.rb', line 14 def singular_resource_name 'article' end |
Instance Method Details
#save! ⇒ Object
135 136 137 138 139 140 141 142 143 144 |
# File 'lib/zendesk_api/help_center.rb', line 135 def save!(*) super do |req| case req.method when :post # create article req.path = "help_center/sections/#{association.['parent'].id}/articles" when :put # update article # do nothing end end end |