Class: BloomRemitClient::GetDepositTargetsResponse

Inherits:
BaseResponse
  • Object
show all
Defined in:
lib/bloom_remit_client/responses/get_deposit_targets_response.rb

Instance Method Summary collapse

Methods inherited from BaseResponse

#default_body, #default_parsed_body

Instance Method Details

#default_deposit_targetsObject



6
7
8
9
10
11
# File 'lib/bloom_remit_client/responses/get_deposit_targets_response.rb', line 6

def default_deposit_targets
  JSON.parse(body).map do |deposit_target_hash|
    hash = deposit_target_hash.with_indifferent_access
    DepositTarget.new(hash)
  end
end