Class: Crunchbase::Model::Investment

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

Constant Summary collapse

RESOURCE_LIST =
'investments'

Instance Attribute Summary collapse

Attributes inherited from Entity

#type_name, #uuid

Instance Method Summary collapse

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_atObject (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_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

#invested_inObject (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_investedObject (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_codeObject (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_usdObject (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_atObject (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_keysObject



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