Sha256: 54edacb2f8298d8e2801e7c60f3dcb0633a04865f69f6316e368aeaad98121aa

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 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
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
crunchbase4-0.1.4 lib/crunchbase/models/concerns/mappings.rb