Class: Crunchbase::Model::Investment

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

Constant Summary collapse

RESOURCE_LIST =
'investments'.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) ⇒ 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_onObject (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_codeObject (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_atObject (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_roundObject (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_itemsObject (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

#investorsObject (readonly)

Returns the value of attribute investors.



10
11
12
# File 'lib/crunchbase/model/investment.rb', line 10

def investors
  @investors
end

#investors_total_itemsObject (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_investorObject (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_investedObject (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_codeObject (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_usdObject (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

#partnersObject (readonly)

Returns the value of attribute partners.



10
11
12
# File 'lib/crunchbase/model/investment.rb', line 10

def partners
  @partners
end

#partners_total_itemsObject (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_atObject (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_keysObject



24
25
26
# File 'lib/crunchbase/model/investment.rb', line 24

def date_keys
  %w(announced_on)
end

#property_keysObject



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_listsObject



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