Class: CrowdPay::Investor
- Inherits:
-
Object
- Object
- CrowdPay::Investor
- Includes:
- ActiveModel::AttributeMethods, ActiveModel::Validations, CrowdPay
- Defined in:
- lib/crowd_pay/investor.rb
Constant Summary
Constants included from CrowdPay
Instance Attribute Summary collapse
-
#birth_date ⇒ Object
Returns the value of attribute birth_date.
-
#created_by_ip_address ⇒ Object
Returns the value of attribute created_by_ip_address.
-
#email ⇒ Object
Returns the value of attribute email.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#investor_key ⇒ Object
Returns the value of attribute investor_key.
-
#is_cip_satisfied ⇒ Object
Returns the value of attribute is_cip_satisfied.
-
#is_legal_address_foreign ⇒ Object
Returns the value of attribute is_legal_address_foreign.
-
#is_mailing_address_foreign ⇒ Object
Returns the value of attribute is_mailing_address_foreign.
-
#is_person ⇒ Object
Returns the value of attribute is_person.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#legal_address_1 ⇒ Object
Returns the value of attribute legal_address_1.
-
#legal_address_2 ⇒ Object
Returns the value of attribute legal_address_2.
-
#legal_city ⇒ Object
Returns the value of attribute legal_city.
-
#legal_country ⇒ Object
Returns the value of attribute legal_country.
-
#legal_state ⇒ Object
Returns the value of attribute legal_state.
-
#legal_zip ⇒ Object
Returns the value of attribute legal_zip.
-
#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.
-
#middle_name ⇒ Object
Returns the value of attribute middle_name.
-
#name ⇒ Object
Returns the value of attribute name.
-
#portal_investor_number ⇒ Object
Returns the value of attribute portal_investor_number.
-
#primary_phone ⇒ Object
Returns the value of attribute primary_phone.
-
#secondary_phone ⇒ Object
Returns the value of attribute secondary_phone.
-
#tax_id_number ⇒ Object
Returns the value of attribute tax_id_number.
Class Method Summary collapse
Methods included from CrowdPay
Instance Attribute Details
#birth_date ⇒ Object
Returns the value of attribute birth_date.
7 8 9 |
# File 'lib/crowd_pay/investor.rb', line 7 def birth_date @birth_date end |
#created_by_ip_address ⇒ Object
Returns the value of attribute created_by_ip_address.
7 8 9 |
# File 'lib/crowd_pay/investor.rb', line 7 def created_by_ip_address @created_by_ip_address end |
#email ⇒ Object
Returns the value of attribute email.
7 8 9 |
# File 'lib/crowd_pay/investor.rb', line 7 def email @email end |
#first_name ⇒ Object
Returns the value of attribute first_name.
7 8 9 |
# File 'lib/crowd_pay/investor.rb', line 7 def first_name @first_name end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/crowd_pay/investor.rb', line 7 def id @id end |
#investor_key ⇒ Object
Returns the value of attribute investor_key.
7 8 9 |
# File 'lib/crowd_pay/investor.rb', line 7 def investor_key @investor_key end |
#is_cip_satisfied ⇒ Object
Returns the value of attribute is_cip_satisfied.
7 8 9 |
# File 'lib/crowd_pay/investor.rb', line 7 def is_cip_satisfied @is_cip_satisfied end |
#is_legal_address_foreign ⇒ Object
Returns the value of attribute is_legal_address_foreign.
7 8 9 |
# File 'lib/crowd_pay/investor.rb', line 7 def is_legal_address_foreign @is_legal_address_foreign end |
#is_mailing_address_foreign ⇒ Object
Returns the value of attribute is_mailing_address_foreign.
7 8 9 |
# File 'lib/crowd_pay/investor.rb', line 7 def is_mailing_address_foreign @is_mailing_address_foreign end |
#is_person ⇒ Object
Returns the value of attribute is_person.
7 8 9 |
# File 'lib/crowd_pay/investor.rb', line 7 def is_person @is_person end |
#last_name ⇒ Object
Returns the value of attribute last_name.
7 8 9 |
# File 'lib/crowd_pay/investor.rb', line 7 def last_name @last_name end |
#legal_address_1 ⇒ Object
Returns the value of attribute legal_address_1.
7 8 9 |
# File 'lib/crowd_pay/investor.rb', line 7 def legal_address_1 @legal_address_1 end |
#legal_address_2 ⇒ Object
Returns the value of attribute legal_address_2.
7 8 9 |
# File 'lib/crowd_pay/investor.rb', line 7 def legal_address_2 @legal_address_2 end |
#legal_city ⇒ Object
Returns the value of attribute legal_city.
7 8 9 |
# File 'lib/crowd_pay/investor.rb', line 7 def legal_city @legal_city end |
#legal_country ⇒ Object
Returns the value of attribute legal_country.
7 8 9 |
# File 'lib/crowd_pay/investor.rb', line 7 def legal_country @legal_country end |
#legal_state ⇒ Object
Returns the value of attribute legal_state.
7 8 9 |
# File 'lib/crowd_pay/investor.rb', line 7 def legal_state @legal_state end |
#legal_zip ⇒ Object
Returns the value of attribute legal_zip.
7 8 9 |
# File 'lib/crowd_pay/investor.rb', line 7 def legal_zip @legal_zip end |
#mailing_address_1 ⇒ Object
Returns the value of attribute mailing_address_1.
7 8 9 |
# File 'lib/crowd_pay/investor.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/investor.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/investor.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/investor.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/investor.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/investor.rb', line 7 def mailing_zip @mailing_zip end |
#middle_name ⇒ Object
Returns the value of attribute middle_name.
7 8 9 |
# File 'lib/crowd_pay/investor.rb', line 7 def middle_name @middle_name end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/crowd_pay/investor.rb', line 7 def name @name end |
#portal_investor_number ⇒ Object
Returns the value of attribute portal_investor_number.
7 8 9 |
# File 'lib/crowd_pay/investor.rb', line 7 def portal_investor_number @portal_investor_number end |
#primary_phone ⇒ Object
Returns the value of attribute primary_phone.
7 8 9 |
# File 'lib/crowd_pay/investor.rb', line 7 def primary_phone @primary_phone end |
#secondary_phone ⇒ Object
Returns the value of attribute secondary_phone.
7 8 9 |
# File 'lib/crowd_pay/investor.rb', line 7 def secondary_phone @secondary_phone end |
#tax_id_number ⇒ Object
Returns the value of attribute tax_id_number.
7 8 9 |
# File 'lib/crowd_pay/investor.rb', line 7 def tax_id_number @tax_id_number end |
Class Method Details
.create(data) ⇒ Object
52 53 54 55 56 |
# File 'lib/crowd_pay/investor.rb', line 52 def self.create(data) url = 'Crowdfunding/api/Investor' response = post(url, data) parse(response) end |
.find(id) ⇒ Object
46 47 48 49 50 |
# File 'lib/crowd_pay/investor.rb', line 46 def self.find(id) url = "Crowdfunding/api/Investor/#{id}" response = get(url) parse(response) end |