Class: CrowdPay::Escrow

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::AttributeMethods, ActiveModel::Validations, CrowdPay
Defined in:
lib/crowd_pay/escrow.rb

Constant Summary

Constants included from CrowdPay

VERSION

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from CrowdPay

included

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



7
8
9
# File 'lib/crowd_pay/escrow.rb', line 7

def amount
  @amount
end

#cash_balanceObject

Returns the value of attribute cash_balance.



7
8
9
# File 'lib/crowd_pay/escrow.rb', line 7

def cash_balance
  @cash_balance
end

#dateObject

Returns the value of attribute date.



7
8
9
# File 'lib/crowd_pay/escrow.rb', line 7

def date
  @date
end

#descriptionObject

Returns the value of attribute description.



7
8
9
# File 'lib/crowd_pay/escrow.rb', line 7

def description
  @description
end

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/crowd_pay/escrow.rb', line 7

def id
  @id
end

#issue_amountObject

Returns the value of attribute issue_amount.



7
8
9
# File 'lib/crowd_pay/escrow.rb', line 7

def issue_amount
  @issue_amount
end

#issue_numberObject

Returns the value of attribute issue_number.



7
8
9
# File 'lib/crowd_pay/escrow.rb', line 7

def issue_number
  @issue_number
end

#maximum_investment_amountObject

Returns the value of attribute maximum_investment_amount.



7
8
9
# File 'lib/crowd_pay/escrow.rb', line 7

def maximum_investment_amount
  @maximum_investment_amount
end

#minimum_investment_amountObject

Returns the value of attribute minimum_investment_amount.



7
8
9
# File 'lib/crowd_pay/escrow.rb', line 7

def minimum_investment_amount
  @minimum_investment_amount
end

#offering_typeObject

Returns the value of attribute offering_type.



7
8
9
# File 'lib/crowd_pay/escrow.rb', line 7

def offering_type
  @offering_type
end

#portal_issue_numberObject

Returns the value of attribute portal_issue_number.



7
8
9
# File 'lib/crowd_pay/escrow.rb', line 7

def portal_issue_number
  @portal_issue_number
end

#principal_balanceObject

Returns the value of attribute principal_balance.



7
8
9
# File 'lib/crowd_pay/escrow.rb', line 7

def principal_balance
  @principal_balance
end

#statusObject

Returns the value of attribute status.



7
8
9
# File 'lib/crowd_pay/escrow.rb', line 7

def status
  @status
end

#transactionsObject

Returns the value of attribute transactions.



7
8
9
# File 'lib/crowd_pay/escrow.rb', line 7

def transactions
  @transactions
end

Class Method Details

.find(id = nil) ⇒ Object



12
13
14
15
16
17
# File 'lib/crowd_pay/escrow.rb', line 12

def self.find(id=nil)
  url = 'Crowdfunding/api/Escrows'
  url += "/#{id}" if id
  response = get(url)
  parse(response)
end

.find_with_transactions(id) ⇒ Object



19
20
21
22
23
# File 'lib/crowd_pay/escrow.rb', line 19

def self.find_with_transactions(id)
  url = "Crowdfunding/api/Escrows/#{id}/Transactions"
  response = get(url)
  parse(response)
end