Class: PacerApi::Batch::PartySearch::Download

Inherits:
Struct
  • Object
show all
Defined in:
lib/pacer_api/batch/party_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/party_search.rb', line 63

def payload
  @payload
end

Instance Method Details

#partiesObject



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

def parties
  payload.fetch(:content).map { |h| PartyInfo.new(h) }
end