class Zendesk2::TicketComments
Public Instance Methods
all(params = {})
click to toggle source
# File lib/zendesk2/ticket_comments.rb, line 18 def all(params = {}) requires :ticket_id body = cistern.send(collection_method, { 'ticket_id' => ticket_id }.merge(params)).body collection = clone.load(body[collection_root]) collection.merge_attributes(Cistern::Hash.slice(body, 'count', 'next_page', 'previous_page')) collection end
ticket()
click to toggle source
# File lib/zendesk2/ticket_comments.rb, line 14 def ticket cistern.tickets.get(ticket_id) end