Class: Crunchbase::Models::Ipo

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

Overview

Get the person data from API

Constant Summary collapse

RESOURCE_LIST =
'ipos'

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



25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/crunchbase/models/ipo.rb', line 25

def basis_fields
  %w[
    uuid
    permalink
    identifier
    amount_raised
    share_price
    stock_symbol
    valuation
    delisted_on
    went_public_on
    short_description
  ]
end

#field_idsObject



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

def field_ids
  %w[
    created_at
    entity_def_id
    image_id
    rank
    rank_ipo
    shares_outstanding
    shares_sold
    stock_exchange_symbol
    stock_full_symbol
    updated_at
  ] + basis_fields
end

#full_cardsObject



40
41
42
43
44
45
# File 'lib/crunchbase/models/ipo.rb', line 40

def full_cards
  %w[
    organization
    press_references
  ]
end