Module: PacerApi

Defined in:
lib/pacer_api/error.rb,
lib/pacer_api/session.rb,
lib/pacer_api/version.rb,
lib/pacer_api/batch_job.rb,
lib/pacer_api/case_info.rb,
lib/pacer_api/party_info.rb,
lib/pacer_api/translation.rb,
lib/pacer_api/batch/status.rb,
lib/pacer_api/authenticator.rb,
lib/pacer_api/batch/case_search.rb,
lib/pacer_api/batch/party_search.rb,
lib/pacer_api/request_translator.rb,
lib/pacer_api/response_translator.rb,
lib/pacer_api/immediate/case_search.rb,
lib/pacer_api/immediate/party_search.rb,
lib/pacer_api/immediate/paginated_response.rb

Defined Under Namespace

Modules: Batch, Immediate, Translation Classes: Authenticator, RequestTranslator, ResponseTranslator, Session

Constant Summary collapse

Error =
Class.new(StandardError)
AuthenticationError =
Class.new(Error)
NotImplementedError =
Class.new(StandardError)
ResponseError =
Class.new(Error)
EncodeError =
Class.new(Error)
DecodeError =
Class.new(Error)
VERSION =
"0.1.2"
BatchJob =
Class.new(OpenStruct) do
  def running?
    status == "RUNNING"
  end

  def completed?
    status == "COMPLETED"
  end
end
CaseInfo =
Class.new(OpenStruct)
PartyInfo =
Class.new(OpenStruct) do
  def court_case
    @court_case ||= PacerApi::CaseInfo.new(self[:court_case])
  end
end