Class: Crunchbase::Models::FundingRound

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

Overview

Get the person data from API

Constant Summary collapse

RESOURCE_LIST =
'funding_rounds'

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



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/crunchbase/models/funding_round.rb', line 36

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

#field_idsObject



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/crunchbase/models/funding_round.rb', line 10

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
    funded_organization_diversity_spotlights
    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

#full_cardsObject



52
53
54
55
56
57
58
59
60
61
# File 'lib/crunchbase/models/funding_round.rb', line 52

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