Class: FundAmerica::EscrowAgreement

Inherits:
Object
  • Object
show all
Defined in:
lib/fund_america/escrow_agreement.rb

Class Method Summary collapse

Class Method Details

.create(options) ⇒ Object

End point: apps.fundamerica.com/api/escrow_agreements (POST) Usage: FundAmerica::EscrowAgreement.create(options) Output: Creates a new escrow_agreement



15
16
17
# File 'lib/fund_america/escrow_agreement.rb', line 15

def create(options)
  API::request(:post, 'escrow_agreements', options)
end

.details(escrow_agreement_id) ⇒ Object

End point: apps.fundamerica.com/api/escrow_agreements/:id (GET) Usage: FundAmerica::EscrowAgreement.details(escrow_agreement_id) Output: Returns the details of an escrow_agreement with matching id



22
23
24
# File 'lib/fund_america/escrow_agreement.rb', line 22

def details(escrow_agreement_id)
  API::request(:get, "escrow_agreements/#{escrow_agreement_id}")
end

.listObject

End point: apps.fundamerica.com/api/escrow_agreements (GET) Usage: FundAmerica::EscrowAgreement.list Output: Returns list of escrow_agreements



8
9
10
# File 'lib/fund_america/escrow_agreement.rb', line 8

def list
  API::request(:get, 'escrow_agreements')
end