Class: PacerApi::Batch::CaseSearch::Download

Inherits:
Struct
  • Object
show all
Defined in:
lib/pacer_api/batch/case_search.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#payloadObject

Returns the value of attribute payload

Returns:

  • (Object)

    the current value of payload



63
64
65
# File 'lib/pacer_api/batch/case_search.rb', line 63

def payload
  @payload
end

Instance Method Details

#casesObject



64
65
66
# File 'lib/pacer_api/batch/case_search.rb', line 64

def cases
  payload.fetch(:content).map { |h| CaseInfo.new(h) }
end