lib/crunchbase/investment.rb in crunchbase_v2-0.0.2 vs lib/crunchbase/investment.rb in crunchbase_v2-0.0.3
- old
+ new
@@ -19,9 +19,14 @@
if json['invested_in_type']
@invested_in_type = json['invested_in_type'] && json['invested_in_type']['type']
@invested_in_name = json['invested_in_type'] && json['invested_in_type']['name']
@invested_in_path = json['invested_in_type'] && json['invested_in_type']['path']
+ elsif json['invested_in']
+ # From one's organization investments
+ @invested_in_type = json['invested_in'] && json['invested_in']['type']
+ @invested_in_name = json['invested_in'] && json['invested_in']['name']
+ @invested_in_path = json['invested_in'] && json['invested_in']['path']
elsif json['investor']
@invested_in_type = json['investor'] && json['investor']['type']
@invested_in_name = json['investor'] && json['investor']['name']
@invested_in_path = json['investor'] && json['investor']['path']
end
\ No newline at end of file