Class: PacerApi::Batch::CaseSearch::Download
- Inherits:
-
Struct
- Object
- Struct
- PacerApi::Batch::CaseSearch::Download
- Defined in:
- lib/pacer_api/batch/case_search.rb
Instance Attribute Summary collapse
-
#payload ⇒ Object
Returns the value of attribute payload.
Instance Method Summary collapse
Instance Attribute Details
#payload ⇒ Object
Returns the value of attribute payload
63 64 65 |
# File 'lib/pacer_api/batch/case_search.rb', line 63 def payload @payload end |
Instance Method Details
#cases ⇒ Object
64 65 66 |
# File 'lib/pacer_api/batch/case_search.rb', line 64 def cases payload.fetch(:content).map { |h| CaseInfo.new(h) } end |