class ZendeskAPI::HelpCenter::Article
Public Class Methods
singular_resource_name()
click to toggle source
# File lib/zendesk_api/help_center.rb, line 15 def singular_resource_name 'article' end
Public Instance Methods
save!(*)
click to toggle source
Calls superclass method
# File lib/zendesk_api/help_center.rb, line 136 def save!(*) super do |req| case req.method when :post # create article req.path = "help_center/sections/#{association.options['parent'].id}/articles" when :put # update article # do nothing end end end