Class: Crunchbase::Models::Investment

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

Overview

Get the person data from API

Constant Summary collapse

RESOURCE_LIST =
'investments'

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



22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/crunchbase/models/investment.rb', line 22

def basis_fields
  %w[
    uuid
    name
    permalink
    money_invested
    investor_stage
    investor_type
    funding_round_money_raised
    organization_identifier
    partner_identifiers
    announced_on
  ]
end

#field_idsObject



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/crunchbase/models/investment.rb', line 10

def field_ids
  %w[
    created_at
    entity_def_id
    identifier
    investor_identifier
    is_lead_investor
    funding_round_identifier
    updated_at
  ] + basis_fields
end

#full_cardsObject



37
38
39
40
41
42
43
44
# File 'lib/crunchbase/models/investment.rb', line 37

def full_cards
  %w[
    investor
    organization
    funding_round
    partner
  ]
end