Module: Zendesk2::HelpCenter::SubscriptionRequest::ClassMethods
- Defined in:
- lib/zendesk2/help_center/subscription_request.rb
Instance Method Summary collapse
Instance Method Details
#accepted_attributes(type) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# 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 |