Class: PacerApi::Batch::PartySearch::Download
- Inherits:
-
Struct
- Object
- Struct
- PacerApi::Batch::PartySearch::Download
- Defined in:
- lib/pacer_api/batch/party_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/party_search.rb', line 63 def payload @payload end |
Instance Method Details
#parties ⇒ Object
64 65 66 |
# File 'lib/pacer_api/batch/party_search.rb', line 64 def parties payload.fetch(:content).map { |h| PartyInfo.new(h) } end |