Class: Crunchbase::Model::Investment
- Defined in:
- lib/crunchbase/model/investment.rb
Constant Summary collapse
- RESOURCE_LIST =
'investments'
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#funding_round ⇒ Object
readonly
Returns the value of attribute funding_round.
-
#invested_in ⇒ Object
readonly
Returns the value of attribute invested_in.
-
#money_invested ⇒ Object
readonly
Returns the value of attribute money_invested.
-
#money_invested_currency_code ⇒ Object
readonly
Returns the value of attribute money_invested_currency_code.
-
#money_invested_usd ⇒ Object
readonly
Returns the value of attribute money_invested_usd.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Attributes inherited from Entity
Instance Method Summary collapse
-
#initialize(json) ⇒ Investment
constructor
A new instance of Investment.
- #property_keys ⇒ Object
Methods inherited from Entity
array_from_list, #fetch, funding_rounds_lists, get, list, organization_lists, parsing_from_list, person_lists, total_items_from_list
Constructor Details
#initialize(json) ⇒ Investment
12 13 14 15 16 17 18 |
# File 'lib/crunchbase/model/investment.rb', line 12 def initialize(json) super unless (relationships = json['relationships']).nil? instance_relationships_object(Crunchbase::Model::FundingRound, 'funding_round', relationships['funding_round']) end end |
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
8 9 10 |
# File 'lib/crunchbase/model/investment.rb', line 8 def created_at @created_at end |
#funding_round ⇒ Object (readonly)
Returns the value of attribute funding_round.
10 11 12 |
# File 'lib/crunchbase/model/investment.rb', line 10 def funding_round @funding_round end |
#invested_in ⇒ Object (readonly)
Returns the value of attribute invested_in.
10 11 12 |
# File 'lib/crunchbase/model/investment.rb', line 10 def invested_in @invested_in end |
#money_invested ⇒ Object (readonly)
Returns the value of attribute money_invested.
8 9 10 |
# File 'lib/crunchbase/model/investment.rb', line 8 def money_invested @money_invested end |
#money_invested_currency_code ⇒ Object (readonly)
Returns the value of attribute money_invested_currency_code.
8 9 10 |
# File 'lib/crunchbase/model/investment.rb', line 8 def money_invested_currency_code @money_invested_currency_code end |
#money_invested_usd ⇒ Object (readonly)
Returns the value of attribute money_invested_usd.
8 9 10 |
# File 'lib/crunchbase/model/investment.rb', line 8 def money_invested_usd @money_invested_usd end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
8 9 10 |
# File 'lib/crunchbase/model/investment.rb', line 8 def updated_at @updated_at end |
Instance Method Details
#property_keys ⇒ Object
20 21 22 23 24 |
# File 'lib/crunchbase/model/investment.rb', line 20 def property_keys %w[ money_invested money_invested_currency_code money_invested_usd created_at updated_at ] end |