Class: Crunchbase::Model::FundingRound

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

Constant Summary collapse

RESOURCE_LIST =
'funding_rounds'
RESOURCE_NAME =
'funding-rounds'

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) ⇒ FundingRound

Returns a new instance of FundingRound.



20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/crunchbase/model/funding_round.rb', line 20

def initialize(json)
  super

  unless (relationships = json['relationships']).nil?
    set_relationships_object(Crunchbase::Model::Investment, 'investments', relationships['investments'])
    set_relationships_object(Crunchbase::Model::FundedOrganization, 'funded_organization', relationships['funded_organization'])
    set_relationships_object(Crunchbase::Model::Image, 'images', relationships['images'])
    set_relationships_object(Crunchbase::Model::Video, 'videos', relationships['videos'])
    set_relationships_object(Crunchbase::Model::New, 'news', relationships['news'])
  end

end

Instance Attribute Details

#announced_onObject (readonly)

Returns the value of attribute announced_on.



9
10
11
# File 'lib/crunchbase/model/funding_round.rb', line 9

def announced_on
  @announced_on
end

#announced_on_trust_codeObject (readonly)

Returns the value of attribute announced_on_trust_code.



9
10
11
# File 'lib/crunchbase/model/funding_round.rb', line 9

def announced_on_trust_code
  @announced_on_trust_code
end

#api_pathObject (readonly)

Returns the value of attribute api_path.



9
10
11
# File 'lib/crunchbase/model/funding_round.rb', line 9

def api_path
  @api_path
end

#closed_onObject (readonly)

Returns the value of attribute closed_on.



9
10
11
# File 'lib/crunchbase/model/funding_round.rb', line 9

def closed_on
  @closed_on
end

#closed_on_trust_codeObject (readonly)

Returns the value of attribute closed_on_trust_code.



9
10
11
# File 'lib/crunchbase/model/funding_round.rb', line 9

def closed_on_trust_code
  @closed_on_trust_code
end

#created_atObject (readonly)

Returns the value of attribute created_at.



9
10
11
# File 'lib/crunchbase/model/funding_round.rb', line 9

def created_at
  @created_at
end

#funded_organizationObject (readonly)

Returns the value of attribute funded_organization.



15
16
17
# File 'lib/crunchbase/model/funding_round.rb', line 15

def funded_organization
  @funded_organization
end

#funded_organization_total_itemsObject (readonly)

Returns the value of attribute funded_organization_total_items.



17
18
19
# File 'lib/crunchbase/model/funding_round.rb', line 17

def funded_organization_total_items
  @funded_organization_total_items
end

#funding_typeObject (readonly)

Returns the value of attribute funding_type.



9
10
11
# File 'lib/crunchbase/model/funding_round.rb', line 9

def funding_type
  @funding_type
end

#imagesObject (readonly)

Returns the value of attribute images.



15
16
17
# File 'lib/crunchbase/model/funding_round.rb', line 15

def images
  @images
end

#images_total_itemsObject (readonly)

Returns the value of attribute images_total_items.



17
18
19
# File 'lib/crunchbase/model/funding_round.rb', line 17

def images_total_items
  @images_total_items
end

#investmentsObject (readonly)

Returns the value of attribute investments.



15
16
17
# File 'lib/crunchbase/model/funding_round.rb', line 15

def investments
  @investments
end

#investments_total_itemsObject (readonly)

Returns the value of attribute investments_total_items.



17
18
19
# File 'lib/crunchbase/model/funding_round.rb', line 17

def investments_total_items
  @investments_total_items
end

#money_raisedObject (readonly)

Returns the value of attribute money_raised.



9
10
11
# File 'lib/crunchbase/model/funding_round.rb', line 9

def money_raised
  @money_raised
end

#money_raised_currency_codeObject (readonly)

Returns the value of attribute money_raised_currency_code.



9
10
11
# File 'lib/crunchbase/model/funding_round.rb', line 9

def money_raised_currency_code
  @money_raised_currency_code
end

#money_raised_usdObject (readonly)

Returns the value of attribute money_raised_usd.



9
10
11
# File 'lib/crunchbase/model/funding_round.rb', line 9

def money_raised_usd
  @money_raised_usd
end

#newsObject (readonly)

Returns the value of attribute news.



15
16
17
# File 'lib/crunchbase/model/funding_round.rb', line 15

def news
  @news
end

#news_total_itemsObject (readonly)

Returns the value of attribute news_total_items.



17
18
19
# File 'lib/crunchbase/model/funding_round.rb', line 17

def news_total_items
  @news_total_items
end

#seriesObject (readonly)

Returns the value of attribute series.



9
10
11
# File 'lib/crunchbase/model/funding_round.rb', line 9

def series
  @series
end

#series_qualifierObject (readonly)

Returns the value of attribute series_qualifier.



9
10
11
# File 'lib/crunchbase/model/funding_round.rb', line 9

def series_qualifier
  @series_qualifier
end

#target_money_raisedObject (readonly)

Returns the value of attribute target_money_raised.



9
10
11
# File 'lib/crunchbase/model/funding_round.rb', line 9

def target_money_raised
  @target_money_raised
end

#target_money_raised_currency_codeObject (readonly)

Returns the value of attribute target_money_raised_currency_code.



9
10
11
# File 'lib/crunchbase/model/funding_round.rb', line 9

def target_money_raised_currency_code
  @target_money_raised_currency_code
end

#target_money_raised_usdObject (readonly)

Returns the value of attribute target_money_raised_usd.



9
10
11
# File 'lib/crunchbase/model/funding_round.rb', line 9

def target_money_raised_usd
  @target_money_raised_usd
end

#updated_atObject (readonly)

Returns the value of attribute updated_at.



9
10
11
# File 'lib/crunchbase/model/funding_round.rb', line 9

def updated_at
  @updated_at
end

#videosObject (readonly)

Returns the value of attribute videos.



15
16
17
# File 'lib/crunchbase/model/funding_round.rb', line 15

def videos
  @videos
end

#videos_total_itemsObject (readonly)

Returns the value of attribute videos_total_items.



17
18
19
# File 'lib/crunchbase/model/funding_round.rb', line 17

def videos_total_items
  @videos_total_items
end

#web_pathObject (readonly)

Returns the value of attribute web_path.



9
10
11
# File 'lib/crunchbase/model/funding_round.rb', line 9

def web_path
  @web_path
end

Instance Method Details

#date_keysObject



43
44
45
# File 'lib/crunchbase/model/funding_round.rb', line 43

def date_keys
  %w[ announced_on closed_on ]
end

#property_keysObject



33
34
35
36
37
38
39
40
41
# File 'lib/crunchbase/model/funding_round.rb', line 33

def property_keys
  %w[
    api_path web_path funding_type series series_qualifier 
    announced_on announced_on_trust_code closed_on closed_on_trust_code 
    money_raised money_raised_currency_code money_raised_usd 
    target_money_raised target_money_raised_currency_code target_money_raised_usd 
    created_at updated_at
  ]
end