Class: Crunchbase::Model::FundingRound
- Defined in:
- lib/crunchbase/model/funding_round.rb
Constant Summary collapse
- RESOURCE_LIST =
'funding_rounds'- RESOURCE_NAME =
'funding-rounds'
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.
-
#api_path ⇒ Object
readonly
Returns the value of attribute api_path.
-
#closed_on ⇒ Object
readonly
Returns the value of attribute closed_on.
-
#closed_on_trust_code ⇒ Object
readonly
Returns the value of attribute closed_on_trust_code.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#funded_organization ⇒ Object
readonly
Returns the value of attribute funded_organization.
-
#funded_organization_total_items ⇒ Object
readonly
Returns the value of attribute funded_organization_total_items.
-
#funding_type ⇒ Object
readonly
Returns the value of attribute funding_type.
-
#images ⇒ Object
readonly
Returns the value of attribute images.
-
#images_total_items ⇒ Object
readonly
Returns the value of attribute images_total_items.
-
#investments ⇒ Object
readonly
Returns the value of attribute investments.
-
#investments_total_items ⇒ Object
readonly
Returns the value of attribute investments_total_items.
-
#money_raised ⇒ Object
readonly
Returns the value of attribute money_raised.
-
#money_raised_currency_code ⇒ Object
readonly
Returns the value of attribute money_raised_currency_code.
-
#money_raised_usd ⇒ Object
readonly
Returns the value of attribute money_raised_usd.
-
#news ⇒ Object
readonly
Returns the value of attribute news.
-
#news_total_items ⇒ Object
readonly
Returns the value of attribute news_total_items.
-
#series ⇒ Object
readonly
Returns the value of attribute series.
-
#series_qualifier ⇒ Object
readonly
Returns the value of attribute series_qualifier.
-
#target_money_raised ⇒ Object
readonly
Returns the value of attribute target_money_raised.
-
#target_money_raised_currency_code ⇒ Object
readonly
Returns the value of attribute target_money_raised_currency_code.
-
#target_money_raised_usd ⇒ Object
readonly
Returns the value of attribute target_money_raised_usd.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
-
#videos ⇒ Object
readonly
Returns the value of attribute videos.
-
#videos_total_items ⇒ Object
readonly
Returns the value of attribute videos_total_items.
-
#web_path ⇒ Object
readonly
Returns the value of attribute web_path.
Attributes inherited from Entity
Instance Method Summary collapse
- #date_keys ⇒ Object
-
#initialize(json) ⇒ FundingRound
constructor
A new instance of FundingRound.
- #property_keys ⇒ Object
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_on ⇒ Object (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_code ⇒ Object (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_path ⇒ Object (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_on ⇒ Object (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_code ⇒ Object (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_at ⇒ Object (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_organization ⇒ Object (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_items ⇒ Object (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_type ⇒ Object (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 |
#images ⇒ Object (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_items ⇒ Object (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 |
#investments ⇒ Object (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_items ⇒ Object (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_raised ⇒ Object (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_code ⇒ Object (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_usd ⇒ Object (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 |
#news ⇒ Object (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_items ⇒ Object (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 |
#series ⇒ Object (readonly)
Returns the value of attribute series.
9 10 11 |
# File 'lib/crunchbase/model/funding_round.rb', line 9 def series @series end |
#series_qualifier ⇒ Object (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_raised ⇒ Object (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_code ⇒ Object (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_usd ⇒ Object (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_at ⇒ Object (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 |
#videos ⇒ Object (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_items ⇒ Object (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_path ⇒ Object (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_keys ⇒ Object
43 44 45 |
# File 'lib/crunchbase/model/funding_round.rb', line 43 def date_keys %w[ announced_on closed_on ] end |
#property_keys ⇒ Object
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 |