class Zendesk2::GetTopicComments

Public Instance Methods

mock() click to toggle source
# File lib/zendesk2/get_topic_comments.rb, line 14
def mock
  find!(:topics, topic_id)

  topic_comments = data[:topic_comments].values.select { |c| c['topic_id'] == topic_id }

  page(topic_comments, root: 'topic_comments')
end
topic_id() click to toggle source
# File lib/zendesk2/get_topic_comments.rb, line 10
def topic_id
  params.fetch('topic_id')
end