Sha256: 14c79527aea4839b13836e062aff323dee4f6f1d955b3215de785f9f308d674a

Contents?: true

Size: 390 Bytes

Versions: 6

Compression:

Stored size: 390 Bytes

Contents

# frozen_string_literal: true
class Zendesk2::GetTicketAudit
  include Zendesk2::Request

  request_method :get
  request_path { |r| "/tickets/#{r.ticket_id}/audits/#{r.audit_id}.json" }

  def audit_id
    params.fetch('id')
  end

  def ticket_id
    params.fetch('ticket_id')
  end

  def mock(_params = {})
    mock_response('ticket_audit' => find!(:ticket_audits, audit_id))
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
zendesk2-1.15.0 lib/zendesk2/get_ticket_audit.rb
zendesk2-1.13.1 lib/zendesk2/get_ticket_audit.rb
zendesk2-1.13.0 lib/zendesk2/get_ticket_audit.rb
zendesk2-1.12.0 lib/zendesk2/get_ticket_audit.rb
zendesk2-1.11.0 lib/zendesk2/get_ticket_audit.rb
zendesk2-1.10.0 lib/zendesk2/get_ticket_audit.rb