Class: Crunchbase::Model::Ipo

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

Constant Summary collapse

RESOURCE_LIST =
RESOURCE_NAME = 'ipos'.freeze

Instance Attribute Summary collapse

Attributes inherited from Entity

#type_name, #uuid

Instance Method Summary collapse

Methods inherited from Entity

#convert_date!, #fetch, #instance_multi_relationship_objects, #instance_relationships_object, #instance_timestamps, #one_to_many, #one_to_one, #parse_hash_items, #set_relationships_object, #set_variables, #setup_relationships_data!, #special_relationship, #verify_item?

Methods included from Request::Client

#api, #array_from_list, #funding_rounds_lists, #get, #kclass_name, #list, #organization_lists, #parsing_from_list, #person_lists, #total_items_from_list

Constructor Details

#initialize(json) ⇒ Ipo

Returns a new instance of Ipo.



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

def initialize(json)
  super
end

Instance Attribute Details

#api_pathObject (readonly)

Returns the value of attribute api_path.



7
8
9
# File 'lib/crunchbase/model/ipo.rb', line 7

def api_path
  @api_path
end

#created_atObject (readonly)

Returns the value of attribute created_at.



7
8
9
# File 'lib/crunchbase/model/ipo.rb', line 7

def created_at
  @created_at
end

#funded_companyObject (readonly)

Returns the value of attribute funded_company.



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

def funded_company
  @funded_company
end

#imagesObject (readonly)

Returns the value of attribute images.



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

def images
  @images
end

#money_raisedObject (readonly)

Returns the value of attribute money_raised.



7
8
9
# File 'lib/crunchbase/model/ipo.rb', line 7

def money_raised
  @money_raised
end

#money_raised_currency_codeObject (readonly)

Returns the value of attribute money_raised_currency_code.



7
8
9
# File 'lib/crunchbase/model/ipo.rb', line 7

def money_raised_currency_code
  @money_raised_currency_code
end

#money_raised_usdObject (readonly)

Returns the value of attribute money_raised_usd.



7
8
9
# File 'lib/crunchbase/model/ipo.rb', line 7

def money_raised_usd
  @money_raised_usd
end

#newsObject (readonly)

Returns the value of attribute news.



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

def news
  @news
end

#opening_share_priceObject (readonly)

Returns the value of attribute opening_share_price.



7
8
9
# File 'lib/crunchbase/model/ipo.rb', line 7

def opening_share_price
  @opening_share_price
end

#opening_share_price_currency_codeObject (readonly)

Returns the value of attribute opening_share_price_currency_code.



7
8
9
# File 'lib/crunchbase/model/ipo.rb', line 7

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.



7
8
9
# File 'lib/crunchbase/model/ipo.rb', line 7

def opening_share_price_usd
  @opening_share_price_usd
end

#opening_valuationObject (readonly)

Returns the value of attribute opening_valuation.



7
8
9
# File 'lib/crunchbase/model/ipo.rb', line 7

def opening_valuation
  @opening_valuation
end

#opening_valuation_currency_codeObject (readonly)

Returns the value of attribute opening_valuation_currency_code.



7
8
9
# File 'lib/crunchbase/model/ipo.rb', line 7

def opening_valuation_currency_code
  @opening_valuation_currency_code
end

#opening_valuation_usdObject (readonly)

Returns the value of attribute opening_valuation_usd.



7
8
9
# File 'lib/crunchbase/model/ipo.rb', line 7

def opening_valuation_usd
  @opening_valuation_usd
end

#shares_soldObject (readonly)

Returns the value of attribute shares_sold.



7
8
9
# File 'lib/crunchbase/model/ipo.rb', line 7

def shares_sold
  @shares_sold
end

#stock_exchangeObject (readonly)

Returns the value of attribute stock_exchange.



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

def stock_exchange
  @stock_exchange
end

#stock_exchange_symbolObject (readonly)

Returns the value of attribute stock_exchange_symbol.



7
8
9
# File 'lib/crunchbase/model/ipo.rb', line 7

def stock_exchange_symbol
  @stock_exchange_symbol
end

#stock_symbolObject (readonly)

Returns the value of attribute stock_symbol.



7
8
9
# File 'lib/crunchbase/model/ipo.rb', line 7

def stock_symbol
  @stock_symbol
end

#updated_atObject (readonly)

Returns the value of attribute updated_at.



7
8
9
# File 'lib/crunchbase/model/ipo.rb', line 7

def updated_at
  @updated_at
end

#videosObject (readonly)

Returns the value of attribute videos.



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

def videos
  @videos
end

#web_pathObject (readonly)

Returns the value of attribute web_path.



7
8
9
# File 'lib/crunchbase/model/ipo.rb', line 7

def web_path
  @web_path
end

#went_public_onObject (readonly)

Returns the value of attribute went_public_on.



7
8
9
# File 'lib/crunchbase/model/ipo.rb', line 7

def went_public_on
  @went_public_on
end

#went_public_on_trust_codeObject (readonly)

Returns the value of attribute went_public_on_trust_code.



7
8
9
# File 'lib/crunchbase/model/ipo.rb', line 7

def went_public_on_trust_code
  @went_public_on_trust_code
end

Instance Method Details

#date_keysObject



41
42
43
# File 'lib/crunchbase/model/ipo.rb', line 41

def date_keys
  %w(went_public_on)
end

#property_keysObject



29
30
31
32
33
34
35
36
37
38
39
# File 'lib/crunchbase/model/ipo.rb', line 29

def property_keys
  %w(
    api_path web_path went_public_on went_public_on_trust_code
    stock_exchange_symbol stock_symbol
    shares_sold opening_share_price
    opening_share_price_currency_code opening_share_price_usd opening_valuation
    opening_valuation_currency_code opening_valuation_usd
    money_raised money_raised_currency_code money_raised_usd
    created_at updated_at
  )
end

#relationship_listsObject



21
22
23
24
25
26
27
# File 'lib/crunchbase/model/ipo.rb', line 21

def relationship_lists
  {
    'funded_company' => Organization,
    'news' => New,
    'videos' => Video
  }
end