Class: Crunchbase::Models::Organization

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

Overview

Build Organization API rubocop:disable Metrics/ClassLength, Metrics/MethodLength

Constant Summary collapse

RESOURCE_LIST =
'organizations'

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



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/crunchbase/models/organization.rb', line 11

def basis_fields
  %w[
    uuid
    identifier
    permalink
    permalink_aliases
    name
    legal_name
    aliases
    website
    linkedin
    twitter
    rank_org
    short_description
    description
    rank_org_company
  ]
end

#employees_rangeObject



147
148
149
# File 'lib/crunchbase/models/organization.rb', line 147

def employees_range
  Crunchbase::Utils::NUM_EMPLOYEES_ENUM[num_employees_enum]
end

#field_idsObject



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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# File 'lib/crunchbase/models/organization.rb', line 30

def field_ids
  %w[
    diversity_spotlights
    num_diversity_spotlight_investments
    valuation
    valuation_date
    website_url
    acquirer_identifier
    categories
    category_groups
    closed_on
    company_type
    contact_email
    created_at
    delisted_on
    demo_days
    entity_def_id
    equity_funding_total
    exited_on
    facebook
    facet_ids
    founded_on
    founder_identifiers
    funding_stage
    funding_total
    funds_total
    hub_tags
    image_id
    image_url
    investor_identifiers
    investor_stage
    investor_type
    ipo_status
    last_equity_funding_total
    last_equity_funding_type
    last_funding_at
    last_funding_total
    last_funding_type
    last_key_employee_change_date
    last_layoff_date
    layout_id
    listed_stock_symbol
    location_group_identifiers
    location_identifiers
    num_acquisitions
    num_alumni
    num_articles
    num_current_advisor_positions
    num_current_positions
    num_employees_enum
    num_enrollments
    num_event_appearances
    num_exits
    num_exits_ipo
    num_founder_alumni
    num_founders
    num_funding_rounds
    num_funds
    num_investments
    num_investments_funding_rounds
    num_investors
    num_lead_investments
    num_lead_investors
    num_past_positions
    num_portfolio_organizations
    num_relationships
    num_sub_organizations
    operating_status
    override_layout_id
    owner_identifier
    phone_number
    program_application_deadline
    program_duration
    program_type
    rank_delta_d30
    rank_delta_d7
    rank_delta_d90
    rank
    rank_org_school
    rank_principal
    rank_principal_investor
    revenue_range
    school_method
    school_program
    school_type
    status
    stock_exchange_symbol
    stock_symbol
    updated_at
    went_public_on
  ] + basis_fields
end

#full_cardsObject



123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# File 'lib/crunchbase/models/organization.rb', line 123

def full_cards
  %w[
    raised_investments
    participated_funds
    child_organizations
    participated_investments
    investors
    parent_organization
    raised_funding_rounds
    ipos
    event_appearances
    raised_funds
    acquiree_acquisitions
    acquirer_acquisitions
    parent_ownership
    jobs
    founders
    child_ownerships
    participated_funding_rounds
    press_references
    headquarters_address
  ]
end