Sha256: 085f460fecbaf6b33febd9db5f16b69b50f9da99b54eee1e702394552f52e924

Contents?: true

Size: 1.37 KB

Versions: 7

Compression:

Stored size: 1.37 KB

Contents

# frozen_string_literal: true

module Crunchbase
  # Get the Entities data from API
  module Models
    # Get the person data from API
    class FundingRound < Entity
      RESOURCE_LIST = 'funding_rounds'

      def field_ids
        %w[
          created_at
          entity_def_id
          funded_organization_categories
          funded_organization_description
          funded_organization_funding_stage
          funded_organization_funding_total
          funded_organization_identifier
          funded_organization_location
          funded_organization_revenue_range
          identifier
          image_id
          investor_identifiers
          is_equity
          lead_investor_identifiers
          num_partners
          num_relationships
          pre_money_valuation
          rank
          rank_funding_round
          updated_at
        ] + basis_fields
      end

      def basis_fields
        %w[
          uuid
          name
          permalink
          announced_on
          closed_on
          investment_stage
          investment_type
          money_raised
          target_money_raised
          num_investors
          short_description
        ]
      end

      def full_cards
        %w[
          investments
          lead_investors
          investors
          organization
          partners
          press_references
        ]
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
crunchbase4-0.1.7 lib/crunchbase/models/funding_round.rb
crunchbase4-0.1.6 lib/crunchbase/models/funding_round.rb
crunchbase4-0.1.5 lib/crunchbase/models/funding_round.rb
crunchbase4-0.1.4 lib/crunchbase/models/funding_round.rb
crunchbase4-0.1.3 lib/crunchbase/models/funding_round.rb
crunchbase4-0.1.2 lib/crunchbase/models/funding_round.rb
crunchbase4-0.1.1 lib/crunchbase/models/funding_round.rb