Module: Crunchbase::Models::Mappings

Included in:
Entity
Defined in:
lib/crunchbase/models/concerns/mappings.rb

Overview

Build card mappings

Instance Method Summary collapse

Instance Method Details

#card_num_field(card_id) ⇒ Object



32
33
34
# File 'lib/crunchbase/models/concerns/mappings.rb', line 32

def card_num_field(card_id)
  field_ids & ["num_#{card_id}"]
end

#model_mappingsObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/crunchbase/models/concerns/mappings.rb', line 8

def model_mappings
  {
    'investments' => Investment,
    'raised_investments' => Investment,
    'participated_investments' => Investment,
    'participated_funds' => Fund,
    'raised_funds' => Fund,
    'child_organizations' => Organization,
    'parent_organization' => Organization,
    'investors' => Principal,
    'raised_funding_rounds' => FundingRound,
    'participated_funding_rounds' => FundingRound,
    'ipos' => Ipo,
    'event_appearances' => EventAppearance,
    'acquiree_acquisitions' => Acquisition,
    'parent_ownership' => Ownership,
    'child_ownerships' => Ownership,
    'jobs' => Job,
    'founders' => Person,
    'press_references' => PressReference,
    'headquarters_address' => Address
  }
end