Class: CrowdPay::Account
- Inherits:
-
Object
- Object
- CrowdPay::Account
- Includes:
- ActiveModel::AttributeMethods, ActiveModel::Validations, CrowdPay
- Defined in:
- lib/crowd_pay/account.rb
Constant Summary
Constants included from CrowdPay
Instance Attribute Summary collapse
-
#account_type_id ⇒ Object
Returns the value of attribute account_type_id.
-
#available_balance ⇒ Object
Returns the value of attribute available_balance.
-
#contact_email ⇒ Object
Returns the value of attribute contact_email.
-
#contact_name ⇒ Object
Returns the value of attribute contact_name.
-
#contact_phone ⇒ Object
Returns the value of attribute contact_phone.
-
#created_by_ip_address ⇒ Object
Returns the value of attribute created_by_ip_address.
-
#current_balance ⇒ Object
Returns the value of attribute current_balance.
-
#draft_account_name ⇒ Object
Returns the value of attribute draft_account_name.
-
#draft_account_number ⇒ Object
Returns the value of attribute draft_account_number.
-
#draft_account_type_id ⇒ Object
Returns the value of attribute draft_account_type_id.
-
#draft_routing_number ⇒ Object
Returns the value of attribute draft_routing_number.
-
#id ⇒ Object
Returns the value of attribute id.
-
#idology_id ⇒ Object
Returns the value of attribute idology_id.
-
#investor_id ⇒ Object
Returns the value of attribute investor_id.
-
#is_cip_satisfied ⇒ Object
Returns the value of attribute is_cip_satisfied.
-
#is_mailing_address_foreign ⇒ Object
Returns the value of attribute is_mailing_address_foreign.
-
#mailing_address_1 ⇒ Object
Returns the value of attribute mailing_address_1.
-
#mailing_address_2 ⇒ Object
Returns the value of attribute mailing_address_2.
-
#mailing_city ⇒ Object
Returns the value of attribute mailing_city.
-
#mailing_country ⇒ Object
Returns the value of attribute mailing_country.
-
#mailing_state ⇒ Object
Returns the value of attribute mailing_state.
-
#mailing_zip ⇒ Object
Returns the value of attribute mailing_zip.
-
#name_1 ⇒ Object
Returns the value of attribute name_1.
-
#name_2 ⇒ Object
Returns the value of attribute name_2.
-
#name_3 ⇒ Object
Returns the value of attribute name_3.
-
#name_4 ⇒ Object
Returns the value of attribute name_4.
-
#number ⇒ Object
Returns the value of attribute number.
-
#portal_account_number ⇒ Object
Returns the value of attribute portal_account_number.
-
#status_id ⇒ Object
Returns the value of attribute status_id.
-
#w9_code_id ⇒ Object
Returns the value of attribute w9_code_id.
Class Method Summary collapse
- .create(data) ⇒ Object
- .find(id) ⇒ Object
- .find_with_assets(account_id) ⇒ Object
- .find_with_transactions(id) ⇒ Object
- .update(id, data) ⇒ Object
Methods included from CrowdPay
Instance Attribute Details
#account_type_id ⇒ Object
Returns the value of attribute account_type_id.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def account_type_id @account_type_id end |
#available_balance ⇒ Object
Returns the value of attribute available_balance.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def available_balance @available_balance end |
#contact_email ⇒ Object
Returns the value of attribute contact_email.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def contact_email @contact_email end |
#contact_name ⇒ Object
Returns the value of attribute contact_name.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def contact_name @contact_name end |
#contact_phone ⇒ Object
Returns the value of attribute contact_phone.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def contact_phone @contact_phone end |
#created_by_ip_address ⇒ Object
Returns the value of attribute created_by_ip_address.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def created_by_ip_address @created_by_ip_address end |
#current_balance ⇒ Object
Returns the value of attribute current_balance.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def current_balance @current_balance end |
#draft_account_name ⇒ Object
Returns the value of attribute draft_account_name.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def draft_account_name @draft_account_name end |
#draft_account_number ⇒ Object
Returns the value of attribute draft_account_number.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def draft_account_number @draft_account_number end |
#draft_account_type_id ⇒ Object
Returns the value of attribute draft_account_type_id.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def draft_account_type_id @draft_account_type_id end |
#draft_routing_number ⇒ Object
Returns the value of attribute draft_routing_number.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def draft_routing_number @draft_routing_number end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def id @id end |
#idology_id ⇒ Object
Returns the value of attribute idology_id.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def idology_id @idology_id end |
#investor_id ⇒ Object
Returns the value of attribute investor_id.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def investor_id @investor_id end |
#is_cip_satisfied ⇒ Object
Returns the value of attribute is_cip_satisfied.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def is_cip_satisfied @is_cip_satisfied end |
#is_mailing_address_foreign ⇒ Object
Returns the value of attribute is_mailing_address_foreign.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def is_mailing_address_foreign @is_mailing_address_foreign end |
#mailing_address_1 ⇒ Object
Returns the value of attribute mailing_address_1.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def mailing_address_1 @mailing_address_1 end |
#mailing_address_2 ⇒ Object
Returns the value of attribute mailing_address_2.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def mailing_address_2 @mailing_address_2 end |
#mailing_city ⇒ Object
Returns the value of attribute mailing_city.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def mailing_city @mailing_city end |
#mailing_country ⇒ Object
Returns the value of attribute mailing_country.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def mailing_country @mailing_country end |
#mailing_state ⇒ Object
Returns the value of attribute mailing_state.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def mailing_state @mailing_state end |
#mailing_zip ⇒ Object
Returns the value of attribute mailing_zip.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def mailing_zip @mailing_zip end |
#name_1 ⇒ Object
Returns the value of attribute name_1.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def name_1 @name_1 end |
#name_2 ⇒ Object
Returns the value of attribute name_2.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def name_2 @name_2 end |
#name_3 ⇒ Object
Returns the value of attribute name_3.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def name_3 @name_3 end |
#name_4 ⇒ Object
Returns the value of attribute name_4.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def name_4 @name_4 end |
#number ⇒ Object
Returns the value of attribute number.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def number @number end |
#portal_account_number ⇒ Object
Returns the value of attribute portal_account_number.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def portal_account_number @portal_account_number end |
#status_id ⇒ Object
Returns the value of attribute status_id.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def status_id @status_id end |
#w9_code_id ⇒ Object
Returns the value of attribute w9_code_id.
7 8 9 |
# File 'lib/crowd_pay/account.rb', line 7 def w9_code_id @w9_code_id end |
Class Method Details
.create(data) ⇒ Object
63 64 65 66 67 |
# File 'lib/crowd_pay/account.rb', line 63 def self.create(data) url = 'Crowdfunding/api/Account' response = post(url, data) parse(response) end |
.find(id) ⇒ Object
51 52 53 54 55 |
# File 'lib/crowd_pay/account.rb', line 51 def self.find(id) url = "Crowdfunding/api/Account/#{id}" response = get(url) parse(response) end |
.find_with_assets(account_id) ⇒ Object
75 76 77 78 79 |
# File 'lib/crowd_pay/account.rb', line 75 def self.find_with_assets(account_id) url = "Crowdfunding/api/V2/Account/#{account_id}/Assets/All" response = get(url) parse(response) end |
.find_with_transactions(id) ⇒ Object
57 58 59 60 61 |
# File 'lib/crowd_pay/account.rb', line 57 def self.find_with_transactions(id) url = "Crowdfunding/api/Account/#{id}/Transaction" response = get(url) parse(response) end |
.update(id, data) ⇒ Object
69 70 71 72 73 |
# File 'lib/crowd_pay/account.rb', line 69 def self.update(id, data) url = "Crowdfunding/api/Account/#{id}" response = put(url, data) parse(response) end |