Sha256: 2c4c79089366c816f84edddef679eff2ee0e0fe71d92d1f0dd13b945035525b7

Contents?: true

Size: 524 Bytes

Versions: 47

Compression:

Stored size: 524 Bytes

Contents

class Zendesk2::Client
  class Real
    def get_ticket_audit(params={})
      id        = params["id"]
      ticket_id = params["ticket_id"]

      request(
        :method => :get,
        :path => "/tickets/#{ticket_id}/audits/#{id}.json"
      )
    end
  end # Real

  class Mock
    def get_ticket_audit(params={})
      id = params["id"]

      response(
        :path => "/ticket_audits/#{id}.json",
        :body => {
          "ticket_audit" => find!(:ticket_audits, id)
        },
      )
    end
  end # Mock
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
zendesk2-1.5.3 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.4.2 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.4.1 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.4.0 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.3.3 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.3.2 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.3.1 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.3.0 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.2.10 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.2.9 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.2.7 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.2.6 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.2.5 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.2.4 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.2.3 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.2.2 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.2.1 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.2.0 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.1.3 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.1.2 lib/zendesk2/client/requests/get_ticket_audit.rb