class Zendesk2::GetTicketComments
Public Instance Methods
mock(_params = {})
click to toggle source
# File lib/zendesk2/get_ticket_comments.rb, line 12 def mock(_params = {}) comments = data[:ticket_comments].values.select { |comment| comment['ticket_id'] == ticket_id } page(comments, root: 'comments') end
ticket_id()
click to toggle source
# File lib/zendesk2/get_ticket_comments.rb, line 8 def ticket_id params.fetch('ticket_id').to_i end