Class: CrowdPay::Transaction
- Inherits:
-
Object
- Object
- CrowdPay::Transaction
- Includes:
- ActiveModel::AttributeMethods, ActiveModel::Validations, CrowdPay
- Defined in:
- lib/crowd_pay/transaction.rb
Constant Summary
Constants included from CrowdPay
Instance Attribute Summary collapse
-
#account_id ⇒ Object
Returns the value of attribute account_id.
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#asset_id ⇒ Object
Returns the value of attribute asset_id.
-
#created_by_ip_address ⇒ Object
Returns the value of attribute created_by_ip_address.
-
#cusip_number ⇒ Object
Returns the value of attribute cusip_number.
-
#date ⇒ Object
Returns the value of attribute date.
-
#description ⇒ Object
Returns the value of attribute description.
-
#effective_date ⇒ Object
Returns the value of attribute effective_date.
-
#id ⇒ Object
Returns the value of attribute id.
-
#maturity_date ⇒ Object
Returns the value of attribute maturity_date.
-
#reference ⇒ Object
Returns the value of attribute reference.
-
#status ⇒ Object
Returns the value of attribute status.
Class Method Summary collapse
- .debt_pay(data) ⇒ Object
- .find(account_id, id) ⇒ Object
- .fund_account(data) ⇒ Object
- .fund_debt_escrow(data) ⇒ Object
- .reinvest_debt(data) ⇒ Object
- .withdraw_funds(data) ⇒ Object
Methods included from CrowdPay
Instance Attribute Details
#account_id ⇒ Object
Returns the value of attribute account_id.
7 8 9 |
# File 'lib/crowd_pay/transaction.rb', line 7 def account_id @account_id end |
#amount ⇒ Object
Returns the value of attribute amount.
7 8 9 |
# File 'lib/crowd_pay/transaction.rb', line 7 def amount @amount end |
#asset_id ⇒ Object
Returns the value of attribute asset_id.
7 8 9 |
# File 'lib/crowd_pay/transaction.rb', line 7 def asset_id @asset_id end |
#created_by_ip_address ⇒ Object
Returns the value of attribute created_by_ip_address.
7 8 9 |
# File 'lib/crowd_pay/transaction.rb', line 7 def created_by_ip_address @created_by_ip_address end |
#cusip_number ⇒ Object
Returns the value of attribute cusip_number.
7 8 9 |
# File 'lib/crowd_pay/transaction.rb', line 7 def cusip_number @cusip_number end |
#date ⇒ Object
Returns the value of attribute date.
7 8 9 |
# File 'lib/crowd_pay/transaction.rb', line 7 def date @date end |
#description ⇒ Object
Returns the value of attribute description.
7 8 9 |
# File 'lib/crowd_pay/transaction.rb', line 7 def description @description end |
#effective_date ⇒ Object
Returns the value of attribute effective_date.
7 8 9 |
# File 'lib/crowd_pay/transaction.rb', line 7 def effective_date @effective_date end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/crowd_pay/transaction.rb', line 7 def id @id end |
#maturity_date ⇒ Object
Returns the value of attribute maturity_date.
7 8 9 |
# File 'lib/crowd_pay/transaction.rb', line 7 def maturity_date @maturity_date end |
#reference ⇒ Object
Returns the value of attribute reference.
7 8 9 |
# File 'lib/crowd_pay/transaction.rb', line 7 def reference @reference end |
#status ⇒ Object
Returns the value of attribute status.
7 8 9 |
# File 'lib/crowd_pay/transaction.rb', line 7 def status @status end |
Class Method Details
.debt_pay(data) ⇒ Object
40 41 42 43 44 |
# File 'lib/crowd_pay/transaction.rb', line 40 def self.debt_pay(data) url = "Crowdfunding/api/Account/#{data[:account_id]}/Transaction/DebtPay" response = post(url, data) parse(response) end |
.find(account_id, id) ⇒ Object
16 17 18 19 20 |
# File 'lib/crowd_pay/transaction.rb', line 16 def self.find(account_id, id) url = "Crowdfunding/api/Account/#{account_id}/Transaction/#{id}" response = get(url) parse(response) end |
.fund_account(data) ⇒ Object
34 35 36 37 38 |
# File 'lib/crowd_pay/transaction.rb', line 34 def self.fund_account(data) url = "Crowdfunding/api/Account/#{data[:account_id]}/Transaction/FundAccount" response = post(url, data) parse(response) end |
.fund_debt_escrow(data) ⇒ Object
28 29 30 31 32 |
# File 'lib/crowd_pay/transaction.rb', line 28 def self.fund_debt_escrow(data) url = "Crowdfunding/api/Account/#{data[:account_id]}/Transaction/FundDebtEscrow" response = post(url, data) parse(response) end |
.reinvest_debt(data) ⇒ Object
46 47 48 49 50 |
# File 'lib/crowd_pay/transaction.rb', line 46 def self.reinvest_debt(data) url = "Crowdfunding/api/Account/#{data[:account_id]}/Transaction/ReinvestDebt" response = post(url, data) parse(response) end |
.withdraw_funds(data) ⇒ Object
22 23 24 25 26 |
# File 'lib/crowd_pay/transaction.rb', line 22 def self.withdraw_funds(data) url = "Crowdfunding/api/Account/#{data[:account_id]}/Transaction/WithdrawFunds" response = post(url, data) parse(response) end |