Class: Crunchbase::Model::Investment
- Defined in:
- lib/crunchbase/model/investment.rb
Constant Summary collapse
- RESOURCE_LIST =
'investments'.freeze
Instance Attribute Summary collapse
-
#announced_on ⇒ Object
readonly
Returns the value of attribute announced_on.
-
#announced_on_trust_code ⇒ Object
readonly
Returns the value of attribute announced_on_trust_code.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#funding_round ⇒ Object
readonly
Returns the value of attribute funding_round.
-
#funding_round_total_items ⇒ Object
readonly
Returns the value of attribute funding_round_total_items.
-
#investors ⇒ Object
readonly
Returns the value of attribute investors.
-
#investors_total_items ⇒ Object
readonly
Returns the value of attribute investors_total_items.
-
#is_lead_investor ⇒ Object
readonly
Returns the value of attribute is_lead_investor.
-
#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.
-
#partners ⇒ Object
readonly
Returns the value of attribute partners.
-
#partners_total_items ⇒ Object
readonly
Returns the value of attribute partners_total_items.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Attributes inherited from Entity
Instance Method Summary collapse
- #date_keys ⇒ Object
-
#initialize(json) ⇒ Investment
constructor
A new instance of Investment.
- #property_keys ⇒ Object
- #relationship_lists ⇒ Object
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) ⇒ Investment
Returns a new instance of Investment.
13 14 15 |
# File 'lib/crunchbase/model/investment.rb', line 13 def initialize(json) super(json) end |
Instance Attribute Details
#announced_on ⇒ Object (readonly)
Returns the value of attribute announced_on.
7 8 9 |
# File 'lib/crunchbase/model/investment.rb', line 7 def announced_on @announced_on end |
#announced_on_trust_code ⇒ Object (readonly)
Returns the value of attribute announced_on_trust_code.
7 8 9 |
# File 'lib/crunchbase/model/investment.rb', line 7 def announced_on_trust_code @announced_on_trust_code end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
7 8 9 |
# File 'lib/crunchbase/model/investment.rb', line 7 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 |
#funding_round_total_items ⇒ Object (readonly)
Returns the value of attribute funding_round_total_items.
11 12 13 |
# File 'lib/crunchbase/model/investment.rb', line 11 def funding_round_total_items @funding_round_total_items end |
#investors ⇒ Object (readonly)
Returns the value of attribute investors.
10 11 12 |
# File 'lib/crunchbase/model/investment.rb', line 10 def investors @investors end |
#investors_total_items ⇒ Object (readonly)
Returns the value of attribute investors_total_items.
11 12 13 |
# File 'lib/crunchbase/model/investment.rb', line 11 def investors_total_items @investors_total_items end |
#is_lead_investor ⇒ Object (readonly)
Returns the value of attribute is_lead_investor.
7 8 9 |
# File 'lib/crunchbase/model/investment.rb', line 7 def is_lead_investor @is_lead_investor end |
#money_invested ⇒ Object (readonly)
Returns the value of attribute money_invested.
7 8 9 |
# File 'lib/crunchbase/model/investment.rb', line 7 def money_invested @money_invested end |
#money_invested_currency_code ⇒ Object (readonly)
Returns the value of attribute money_invested_currency_code.
7 8 9 |
# File 'lib/crunchbase/model/investment.rb', line 7 def money_invested_currency_code @money_invested_currency_code end |
#money_invested_usd ⇒ Object (readonly)
Returns the value of attribute money_invested_usd.
7 8 9 |
# File 'lib/crunchbase/model/investment.rb', line 7 def money_invested_usd @money_invested_usd end |
#partners ⇒ Object (readonly)
Returns the value of attribute partners.
10 11 12 |
# File 'lib/crunchbase/model/investment.rb', line 10 def partners @partners end |
#partners_total_items ⇒ Object (readonly)
Returns the value of attribute partners_total_items.
11 12 13 |
# File 'lib/crunchbase/model/investment.rb', line 11 def partners_total_items @partners_total_items end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
7 8 9 |
# File 'lib/crunchbase/model/investment.rb', line 7 def updated_at @updated_at end |
Instance Method Details
#date_keys ⇒ Object
24 25 26 |
# File 'lib/crunchbase/model/investment.rb', line 24 def date_keys %w(announced_on) end |
#property_keys ⇒ Object
17 18 19 20 21 22 |
# File 'lib/crunchbase/model/investment.rb', line 17 def property_keys %w( money_invested money_invested_currency_code money_invested_usd created_at updated_at is_lead_investor ) end |
#relationship_lists ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/crunchbase/model/investment.rb', line 28 def relationship_lists { 'funding_round' => FundingRound, 'investors' => Organization, 'partners' => Person } end |