Class: CrowdPay::Escrow
- Inherits:
-
Object
- Object
- CrowdPay::Escrow
- Includes:
- ActiveModel::AttributeMethods, ActiveModel::Validations, CrowdPay
- Defined in:
- lib/crowd_pay/escrow.rb
Constant Summary
Constants included from CrowdPay
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#cash_balance ⇒ Object
Returns the value of attribute cash_balance.
-
#date ⇒ Object
Returns the value of attribute date.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#issue_amount ⇒ Object
Returns the value of attribute issue_amount.
-
#issue_number ⇒ Object
Returns the value of attribute issue_number.
-
#maximum_investment_amount ⇒ Object
Returns the value of attribute maximum_investment_amount.
-
#minimum_investment_amount ⇒ Object
Returns the value of attribute minimum_investment_amount.
-
#offering_type ⇒ Object
Returns the value of attribute offering_type.
-
#portal_issue_number ⇒ Object
Returns the value of attribute portal_issue_number.
-
#principal_balance ⇒ Object
Returns the value of attribute principal_balance.
-
#status ⇒ Object
Returns the value of attribute status.
-
#transactions ⇒ Object
Returns the value of attribute transactions.
Class Method Summary collapse
Methods included from CrowdPay
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
7 8 9 |
# File 'lib/crowd_pay/escrow.rb', line 7 def amount @amount end |
#cash_balance ⇒ Object
Returns the value of attribute cash_balance.
7 8 9 |
# File 'lib/crowd_pay/escrow.rb', line 7 def cash_balance @cash_balance end |
#date ⇒ Object
Returns the value of attribute date.
7 8 9 |
# File 'lib/crowd_pay/escrow.rb', line 7 def date @date end |
#description ⇒ Object
Returns the value of attribute description.
7 8 9 |
# File 'lib/crowd_pay/escrow.rb', line 7 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/crowd_pay/escrow.rb', line 7 def id @id end |
#issue_amount ⇒ Object
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_number ⇒ Object
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_amount ⇒ Object
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_amount ⇒ Object
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_type ⇒ Object
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_number ⇒ Object
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_balance ⇒ Object
Returns the value of attribute principal_balance.
7 8 9 |
# File 'lib/crowd_pay/escrow.rb', line 7 def principal_balance @principal_balance end |
#status ⇒ Object
Returns the value of attribute status.
7 8 9 |
# File 'lib/crowd_pay/escrow.rb', line 7 def status @status end |
#transactions ⇒ Object
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 |