Class: Crunchbase::Models::Person

Inherits:
Entity
  • Object
show all
Defined in:
lib/crunchbase/models/person.rb

Overview

Get the person data from API

Constant Summary collapse

RESOURCE_LIST =
'people'

Instance Method Summary collapse

Methods inherited from Entity

#as_json, #fields, #parse_response, #setup_relationships

Methods included from Mappings

#card_num_field, #model_mappings

Methods included from Utilities::Response

dynamic_attributes

Instance Method Details

#basis_fieldsObject



62
63
64
65
66
67
68
69
70
71
72
73
74
# File 'lib/crunchbase/models/person.rb', line 62

def basis_fields
  %w[
    uuid
    permalink
    permalink_aliases
    name
    aliases
    website
    rank
    short_description
    description
  ]
end

#field_idsObject



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/crunchbase/models/person.rb', line 10

def field_ids
  %w[
    born_on
    created_at
    died_on
    entity_def_id
    facebook
    facet_ids
    first_name
    gender
    identifier
    image_id
    image_url
    investor_stage
    investor_type
    last_name
    layout_id
    linkedin
    location_group_identifiers
    location_identifiers
    middle_name
    num_articles
    num_current_advisor_jobs
    num_current_jobs
    num_event_appearances
    num_exits
    num_exits_ipo
    num_founded_organizations
    num_investments
    num_investments_funding_rounds
    num_jobs
    num_lead_investments
    num_partner_investments
    num_past_advisor_jobs
    num_past_jobs
    num_portfolio_organizations
    num_relationships
    override_layout_id
    primary_job_title
    primary_organization
    rank_delta_d30
    rank_delta_d7
    rank_delta_d90
    rank_person
    rank_principal
    rank_principal_investor
    short_description
    twitter
    updated_at
  ] + basis_fields
end

#full_cardsObject



76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/crunchbase/models/person.rb', line 76

def full_cards
  %w[
    partner_funding_rounds
    participated_funds
    participated_investments
    degrees
    primary_job
    founded_organizations
    event_appearances
    jobs
    participated_funding_rounds
    fields
    press_references
    primary_organization
    partner_investments
  ]
end