class Crunchbase::Model::Organization

Constants

RESOURCE_LIST

Attributes

acquired_by[R]
acquired_by_total_items[R]
acquisitions[R]
acquisitions_total_items[R]
also_known_as[R]
api_path[R]
api_url[R]
board_members_and_advisors[R]
board_members_and_advisors_total_items[R]
categories[R]
categories_total_items[R]
closed_on[R]
closed_on_trust_code[R]
competitors[R]
competitors_total_items[R]
contact_email[R]
created_at[R]
current_team[R]
current_team_total_items[R]
customers[R]
customers_total_items[R]
description[R]
founded_on[R]
founded_on_trust_code[R]
founders[R]
founders_total_items[R]
funding_rounds[R]
funding_rounds_total_items[R]
funds[R]
funds_total_items[R]
headquarters[R]
headquarters_total_items[R]
homepage_url[R]
images[R]
images_total_items[R]
investments[R]
investments_total_items[R]
investor_type[R]
investors[R]
investors_total_items[R]
ipo[R]
ipo_total_items[R]
is_closed[R]
members[R]
members_total_items[R]
memberships[R]
memberships_total_items[R]
name[R]
news[R]
news_total_items[R]
num_employees_max[R]
num_employees_min[R]
number_of_investments[R]
offices[R]
offices_total_items[R]
owned_by[R]
owned_by_total_items[R]
past_team[R]
past_team_total_items[R]
phone_number[R]
primary_image[R]
primary_image_total_items[R]
primary_role[R]
products[R]
products_total_items[R]
profile_image_url[R]
rank[R]
role_company[R]
role_group[R]
role_investor[R]
role_school[R]
short_description[R]
stock_exchange[R]
stock_symbol[R]
sub_organizations[R]
sub_organizations_total_items[R]
total_funding_usd[R]
updated_at[R]
videos[R]
videos_total_items[R]
web_path[R]
websites[R]
websites_total_items[R]

Public Class Methods

new(json) click to toggle source
Calls superclass method Crunchbase::Model::Entity::new
# File lib/crunchbase/model/organization.rb, line 30
def initialize(json)
  super(json)
end

Public Instance Methods

date_keys() click to toggle source
# File lib/crunchbase/model/organization.rb, line 77
def date_keys
  %w[founded_on closed_on]
end
property_keys() click to toggle source
# File lib/crunchbase/model/organization.rb, line 34
def property_keys
  %w[
    permalink permalink_aliases api_url api_path web_path
    name also_known_as short_description description profile_image_url
    primary_role role_company role_investor role_group role_school investor_type
    founded_on founded_on_trust_code is_closed closed_on closed_on_trust_code
    num_employees_min num_employees_max total_funding_usd stock_exchange stock_symbol
    number_of_investments homepage_url contact_email phone_number rank
    created_at updated_at
  ]
end
relationship_lists() click to toggle source
# File lib/crunchbase/model/organization.rb, line 46
def relationship_lists
  {
    'primary_image' => PrimaryImage,
    'founders' => Founder,
    'featured_team' => FeaturedTeam,
    'current_team' => CurrentTeam,
    'past_team' => PastTeam,
    'board_members_and_advisors' => BoardMembersAndAdvisor,
    'investors' => Investor,
    'owned_by' => OwnedBy,
    'sub_organizations' => SubOrganization,
    'headquarters' => Headquarter,
    'offices' => Office,
    'products' => Product,
    'categories' => Category,
    'customers' => Customer,
    'competitors' => Competitor,
    'memberships' => Membership,
    'funding_rounds' => FundingRound,
    'investments' => Investment,
    'acquisitions' => Acquisition,
    'acquired_by' => AcquiredBy,
    'ipo' => Ipo,
    'funds' => Fund,
    'websites' => Website,
    'images' => Image,
    'videos' => Video,
    'news' => New
  }
end