Class: Crunchbase::Ipo
Constant Summary collapse
- RESOURCE_NAME =
'ipo'
- RESOURCE_LIST =
'ipo'
Constants inherited from CBEntity
Instance Attribute Summary collapse
-
#canonical_currency_code ⇒ Object
readonly
Returns the value of attribute canonical_currency_code.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#funded_companies ⇒ Object
readonly
Returns the value of attribute funded_companies.
-
#funded_companies_total_items ⇒ Object
readonly
Returns the value of attribute funded_companies_total_items.
-
#money_raised ⇒ Object
readonly
Returns the value of attribute money_raised.
-
#money_raised_currency_code ⇒ Object
readonly
Returns the value of attribute money_raised_currency_code.
-
#money_raised_usd ⇒ Object
readonly
Returns the value of attribute money_raised_usd.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#opening_share_price ⇒ Object
readonly
Returns the value of attribute opening_share_price.
-
#opening_share_price_currency_code ⇒ Object
readonly
Returns the value of attribute opening_share_price_currency_code.
-
#opening_share_price_usd ⇒ Object
readonly
Returns the value of attribute opening_share_price_usd.
-
#opening_valuation ⇒ Object
readonly
Returns the value of attribute opening_valuation.
-
#opening_valuation_currency_code ⇒ Object
readonly
Returns the value of attribute opening_valuation_currency_code.
-
#opening_valuation_usd ⇒ Object
readonly
Returns the value of attribute opening_valuation_usd.
-
#permalink ⇒ Object
readonly
Returns the value of attribute permalink.
-
#shares_outstanding ⇒ Object
readonly
Returns the value of attribute shares_outstanding.
-
#shares_sold ⇒ Object
readonly
Returns the value of attribute shares_sold.
-
#stock_exchange_symbol ⇒ Object
readonly
Returns the value of attribute stock_exchange_symbol.
-
#stock_symbol ⇒ Object
readonly
Returns the value of attribute stock_symbol.
-
#type_name ⇒ Object
readonly
Returns the value of attribute type_name.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
-
#went_public_on ⇒ Object
readonly
Returns the value of attribute went_public_on.
-
#went_public_on_trust_code ⇒ Object
readonly
Returns the value of attribute went_public_on_trust_code.
Instance Method Summary collapse
-
#initialize(json) ⇒ Ipo
constructor
A new instance of Ipo.
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_code ⇒ Object (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_at ⇒ Object (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_companies ⇒ Object (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_items ⇒ Object (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_raised ⇒ Object (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_code ⇒ Object (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_usd ⇒ Object (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 |
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/crunchbase/ipo.rb', line 9 def name @name end |
#opening_share_price ⇒ Object (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_code ⇒ Object (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_usd ⇒ Object (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_valuation ⇒ Object (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_code ⇒ Object (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_usd ⇒ Object (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 |
#permalink ⇒ Object (readonly)
Returns the value of attribute permalink.
9 10 11 |
# File 'lib/crunchbase/ipo.rb', line 9 def permalink @permalink end |
#shares_outstanding ⇒ Object (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_sold ⇒ Object (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_symbol ⇒ Object (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_symbol ⇒ Object (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_name ⇒ Object (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_at ⇒ Object (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_on ⇒ Object (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_code ⇒ Object (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 |