Sha256: 92e14b77f09d6eecbc19d43e07ec71838b6c10e511e79bf4b9e1f4b5b0b332da
Contents?: true
Size: 1.09 KB
Versions: 11
Compression:
Stored size: 1.09 KB
Contents
# frozen_string_literal: true module Crunchbase # Get the Organization data from API module Models # Build card mappings module Mappings 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 def card_num_field(card_id) field_ids & ["num_#{card_id}"] end end end end
Version data entries
11 entries across 11 versions & 1 rubygems