Class: Crunchbase::Ipo

Inherits:
CBEntity show all
Defined in:
lib/crunchbase/ipo.rb

Constant Summary collapse

RESOURCE_NAME =
'ipo'
RESOURCE_LIST =
'ipo'

Constants inherited from CBEntity

CBEntity::RELATIONSHIPS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from CBEntity

array_from_list, category_lists_by_permalink, #fetch, get, list, lists_for_permalink, lists_for_person_permalink, parsing_from_list, search, total_items_from_list

Constructor Details

#initialize(json) ⇒ Ipo

Returns a new instance of Ipo.



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/crunchbase/ipo.rb', line 20

def initialize(json)
  @type_name            = json['type']
  properties            = json['properties']
  relationships         = json['relationships']

  @name                 = properties['name']
  @went_public_on       = properties['went_public_on']
  @stock_symbol         = properties['stock_symbol']
  @permalink            = properties['permalink']
  @shares_outstanding   = properties['shares_outstanding']
  @shares_sold          = properties['shares_sold']
  @opening_share_price  = properties['opening_share_price']
  @money_raised_usd     = properties['money_raised_usd']
  @opening_valuation    = properties['opening_valuation']
  @money_raised         = properties['money_raised']
  @created_at           = Time.at(properties['created_at']).utc
  @updated_at           = Time.at(properties['updated_at']).utc
  @went_public_on_trust_code  = properties['went_public_on_trust_code']
  @canonical_currency_code    = properties['canonical_currency_code']
  @money_raised_currency_code = properties['money_raised_currency_code']
  @opening_valuation_usd      = properties['opening_valuation_usd']
  @opening_share_price_usd    = properties['opening_share_price_usd']
  @stock_exchange_symbol      = properties['stock_exchange_symbol']
  @opening_valuation_currency_code    = properties['opening_valuation_currency_code']
  @opening_share_price_currency_code  = properties['opening_share_price_currency_code']

  @funded_companies_list      = relationships['funded_company']
end

Instance Attribute Details

#canonical_currency_codeObject (readonly)

Returns the value of attribute canonical_currency_code.



9
10
11
# File 'lib/crunchbase/ipo.rb', line 9

def canonical_currency_code
  @canonical_currency_code
end

#created_atObject (readonly)

Returns the value of attribute created_at.



9
10
11
# File 'lib/crunchbase/ipo.rb', line 9

def created_at
  @created_at
end

#funded_companiesObject (readonly)

Returns the value of attribute funded_companies.



16
17
18
# File 'lib/crunchbase/ipo.rb', line 16

def funded_companies
  @funded_companies
end

#funded_companies_total_itemsObject (readonly)

Returns the value of attribute funded_companies_total_items.



17
18
19
# File 'lib/crunchbase/ipo.rb', line 17

def funded_companies_total_items
  @funded_companies_total_items
end

#money_raisedObject (readonly)

Returns the value of attribute money_raised.



9
10
11
# File 'lib/crunchbase/ipo.rb', line 9

def money_raised
  @money_raised
end

#money_raised_currency_codeObject (readonly)

Returns the value of attribute money_raised_currency_code.



9
10
11
# File 'lib/crunchbase/ipo.rb', line 9

def money_raised_currency_code
  @money_raised_currency_code
end

#money_raised_usdObject (readonly)

Returns the value of attribute money_raised_usd.



9
10
11
# File 'lib/crunchbase/ipo.rb', line 9

def money_raised_usd
  @money_raised_usd
end

#nameObject (readonly)

Returns the value of attribute name.



9
10
11
# File 'lib/crunchbase/ipo.rb', line 9

def name
  @name
end

#opening_share_priceObject (readonly)

Returns the value of attribute opening_share_price.



9
10
11
# File 'lib/crunchbase/ipo.rb', line 9

def opening_share_price
  @opening_share_price
end

#opening_share_price_currency_codeObject (readonly)

Returns the value of attribute opening_share_price_currency_code.



9
10
11
# File 'lib/crunchbase/ipo.rb', line 9

def opening_share_price_currency_code
  @opening_share_price_currency_code
end

#opening_share_price_usdObject (readonly)

Returns the value of attribute opening_share_price_usd.



9
10
11
# File 'lib/crunchbase/ipo.rb', line 9

def opening_share_price_usd
  @opening_share_price_usd
end

#opening_valuationObject (readonly)

Returns the value of attribute opening_valuation.



9
10
11
# File 'lib/crunchbase/ipo.rb', line 9

def opening_valuation
  @opening_valuation
end

#opening_valuation_currency_codeObject (readonly)

Returns the value of attribute opening_valuation_currency_code.



9
10
11
# File 'lib/crunchbase/ipo.rb', line 9

def opening_valuation_currency_code
  @opening_valuation_currency_code
end

#opening_valuation_usdObject (readonly)

Returns the value of attribute opening_valuation_usd.



9
10
11
# File 'lib/crunchbase/ipo.rb', line 9

def opening_valuation_usd
  @opening_valuation_usd
end

Returns the value of attribute permalink.



9
10
11
# File 'lib/crunchbase/ipo.rb', line 9

def permalink
  @permalink
end

#shares_outstandingObject (readonly)

Returns the value of attribute shares_outstanding.



9
10
11
# File 'lib/crunchbase/ipo.rb', line 9

def shares_outstanding
  @shares_outstanding
end

#shares_soldObject (readonly)

Returns the value of attribute shares_sold.



9
10
11
# File 'lib/crunchbase/ipo.rb', line 9

def shares_sold
  @shares_sold
end

#stock_exchange_symbolObject (readonly)

Returns the value of attribute stock_exchange_symbol.



9
10
11
# File 'lib/crunchbase/ipo.rb', line 9

def stock_exchange_symbol
  @stock_exchange_symbol
end

#stock_symbolObject (readonly)

Returns the value of attribute stock_symbol.



9
10
11
# File 'lib/crunchbase/ipo.rb', line 9

def stock_symbol
  @stock_symbol
end

#type_nameObject (readonly)

Returns the value of attribute type_name.



9
10
11
# File 'lib/crunchbase/ipo.rb', line 9

def type_name
  @type_name
end

#updated_atObject (readonly)

Returns the value of attribute updated_at.



9
10
11
# File 'lib/crunchbase/ipo.rb', line 9

def updated_at
  @updated_at
end

#went_public_onObject (readonly)

Returns the value of attribute went_public_on.



9
10
11
# File 'lib/crunchbase/ipo.rb', line 9

def went_public_on
  @went_public_on
end

#went_public_on_trust_codeObject (readonly)

Returns the value of attribute went_public_on_trust_code.



9
10
11
# File 'lib/crunchbase/ipo.rb', line 9

def went_public_on_trust_code
  @went_public_on_trust_code
end