Class: CrowdPay::Investor

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

Constant Summary

Constants included from CrowdPay

VERSION

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from CrowdPay

included

Instance Attribute Details

#birth_dateObject

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_addressObject

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

#emailObject

Returns the value of attribute email.



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

def email
  @email
end

#first_nameObject

Returns the value of attribute first_name.



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

def first_name
  @first_name
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#investor_keyObject

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_satisfiedObject

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

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_foreignObject

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_personObject

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_nameObject

Returns the value of attribute last_name.



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

def last_name
  @last_name
end

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

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

Returns the value of attribute legal_city.



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

def legal_city
  @legal_city
end

Returns the value of attribute legal_country.



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

def legal_country
  @legal_country
end

Returns the value of attribute legal_state.



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

def legal_state
  @legal_state
end

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_1Object

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_2Object

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_cityObject

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_countryObject

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_stateObject

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_zipObject

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_nameObject

Returns the value of attribute middle_name.



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

def middle_name
  @middle_name
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#portal_investor_numberObject

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_phoneObject

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_phoneObject

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_numberObject

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