Sha256: 3c3bee00050483c4164ed88c7bd88e93fabff78190a6e87fb7aff4a0cbabe70f

Contents?: true

Size: 475 Bytes

Versions: 28

Compression:

Stored size: 475 Bytes

Contents

class Zendesk2::Client
  class Real
    def get_ticket_comments(params={})
      ticket_id = params["ticket_id"]
      request(
        :method => :get,
        :path => "/tickets/#{ticket_id}/comments.json"
      )
    end
  end # Real

  class Mock
    def get_ticket_comments(params={})
      ticket_id = params["ticket_id"]

      page(params,
           :ticket_comments,
           "/tickets/#{ticket_id}/comments.json",
           "comments")
    end
  end # Mock
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
zendesk2-1.3.1 lib/zendesk2/client/requests/get_ticket_comments.rb
zendesk2-1.3.0 lib/zendesk2/client/requests/get_ticket_comments.rb
zendesk2-1.2.10 lib/zendesk2/client/requests/get_ticket_comments.rb
zendesk2-1.2.9 lib/zendesk2/client/requests/get_ticket_comments.rb
zendesk2-1.2.7 lib/zendesk2/client/requests/get_ticket_comments.rb
zendesk2-1.2.6 lib/zendesk2/client/requests/get_ticket_comments.rb
zendesk2-1.2.5 lib/zendesk2/client/requests/get_ticket_comments.rb
zendesk2-1.2.4 lib/zendesk2/client/requests/get_ticket_comments.rb
zendesk2-1.2.3 lib/zendesk2/client/requests/get_ticket_comments.rb
zendesk2-1.2.2 lib/zendesk2/client/requests/get_ticket_comments.rb
zendesk2-1.2.1 lib/zendesk2/client/requests/get_ticket_comments.rb
zendesk2-1.2.0 lib/zendesk2/client/requests/get_ticket_comments.rb
zendesk2-1.1.3 lib/zendesk2/client/requests/get_ticket_comments.rb
zendesk2-1.1.2 lib/zendesk2/client/requests/get_ticket_comments.rb
zendesk2-1.0.0 lib/zendesk2/client/requests/get_ticket_comments.rb
zendesk2-0.5.4 lib/zendesk2/client/requests/get_ticket_comments.rb
zendesk2-0.5.3 lib/zendesk2/client/requests/get_ticket_comments.rb
zendesk2-0.5.2 lib/zendesk2/client/requests/get_ticket_comments.rb
zendesk2-0.5.1 lib/zendesk2/client/requests/get_ticket_comments.rb
zendesk2-0.5.0 lib/zendesk2/client/requests/get_ticket_comments.rb