module Zendesk2::HelpCenter::SubscriptionRequest::ClassMethods

Public Instance Methods

accepted_attributes(type) click to toggle source
# File lib/zendesk2/help_center/subscription_request.rb, line 9
def accepted_attributes(type)
  case type
  when 'topic'
    %w(include_comments user_id)
  when 'post'
    %w(user_id)
  else
    %w(locale user_id)
  end
end