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.7.5 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.7.4 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.7.2 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.7.1 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.7.0 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.6.1 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.5.17 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.5.16 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.5.15 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.5.14 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.5.13 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.5.12 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.5.11 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.5.10 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.5.9 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.5.8 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.5.7 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.5.6 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.5.5 lib/zendesk2/client/requests/get_ticket_audit.rb
zendesk2-1.5.4 lib/zendesk2/client/requests/get_ticket_audit.rb