class Zendesk2::UpdateTopic

Public Instance Methods

mock() click to toggle source
# File lib/zendesk2/update_topic.rb, line 17
def mock
  mock_response('topic' => find!(:topics, topic_id).merge!(topic_params))
end
topic_id() click to toggle source
# File lib/zendesk2/update_topic.rb, line 9
def topic_id
  params.fetch('topic').fetch('id').to_i
end
topic_params() click to toggle source
# File lib/zendesk2/update_topic.rb, line 13
def topic_params
  Cistern::Hash.slice(params.fetch('topic'), *Zendesk2::CreateTopic.accepted_attributes)
end