Class: Crunchbase::Models::Fund

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

Overview

Get the Fund data from API

Constant Summary collapse

RESOURCE_LIST =
'funds'

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



24
25
26
27
28
29
30
31
32
# File 'lib/crunchbase/models/fund.rb', line 24

def basis_fields
  %w[
    uuid
    name
    announced_on
    money_raised
    permalink
  ]
end

#field_idsObject



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

def field_ids
  %w[
    created_at
    entity_def_id
    image_id
    investor_identifiers
    num_investors
    owner_identifier
    short_description
    started_on
    updated_at
  ] + basis_fields
end

#full_cardsObject



34
35
36
37
38
39
40
# File 'lib/crunchbase/models/fund.rb', line 34

def full_cards
  %w[
    investors
    owner
    press_references
  ]
end