Class: Crunchbase::Models::Acquisition

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

Overview

Get the person data from API

Constant Summary collapse

RESOURCE_LIST =
'acquisitions'

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/acquisition.rb', line 36

def basis_fields
  %w[
    uuid
    permalink
    identifier
    announced_on
    completed_on
    acquisition_type
    price
    short_description
    acquiree_funding_total
    acquiree_identifier
    acquirer_revenue_range
  ]
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/acquisition.rb', line 10

def field_ids
  %w[
    acquiree_categories
    acquiree_last_funding_type
    acquiree_locations
    acquiree_num_funding_rounds
    acquiree_revenue_range
    acquiree_short_description
    acquirer_categories
    acquirer_funding_total
    acquirer_identifier
    acquirer_locations
    acquirer_num_funding_rounds
    acquirer_short_description
    created_at
    disposition_of_acquired
    entity_def_id
    num_relationships
    rank
    rank_acquisition
    status
    terms
    updated_at
  ] + basis_fields
end

#full_cardsObject



52
53
54
55
56
57
58
# File 'lib/crunchbase/models/acquisition.rb', line 52

def full_cards
  %w[
    acquiree_organization
    acquirer_organization
    press_references
  ]
end