class Crunchbase::Organization

Constants

RESOURCE_FIND
RESOURCE_LIST

Attributes

acquisitions[R]
board_members_and_advisors[R]
categories[R]
closed_on[R]
closed_on_trust_code[R]
competitors[R]
created_at[R]
current_team[R]
customers[R]
description[R]
founded_on[R]
founded_on_trust_code[R]
founders[R]
funding_rounds[R]
headquarters[R]
homepage_url[R]
images[R]
investments[R]
ipo[R]
is_closed[R]
members[R]
name[R]
news[R]
number_of_employees[R]
number_of_investments[R]
offices[R]
past_team[R]
primary_image[R]
primary_role[R]
products[R]
role_company[R]
short_description[R]
stock_exchange[R]
stock_symbol[R]
sub_organizations[R]
total_funding_usd[R]
updated_at[R]
websites[R]

Public Class Methods

find_all_by_domain_name(q, page = 1) click to toggle source
# File lib/crunchbase-api/organization.rb, line 59
def self.find_all_by_domain_name(q, page = 1)
  self.fetch_list(page, ORDER_CREATED_AT_DESC, { domain_name:q })
end
find_all_by_name(q, page = 1) click to toggle source
# File lib/crunchbase-api/organization.rb, line 67
def self.find_all_by_name(q, page = 1)
  self.fetch_list(page, ORDER_CREATED_AT_DESC, { name:q })
end
find_all_by_query(q, page = 1) click to toggle source
# File lib/crunchbase-api/organization.rb, line 63
def self.find_all_by_query(q, page = 1)
  self.fetch_list(page, ORDER_CREATED_AT_DESC, { query:q })
end
get(permalink) click to toggle source
# File lib/crunchbase-api/organization.rb, line 51
def self.get(permalink)
  self.fetch_one permalink
end
list(page = 1, order = ORDER_CREATED_AT_DESC) click to toggle source
# File lib/crunchbase-api/organization.rb, line 55
def self.list(page = 1, order = ORDER_CREATED_AT_DESC)
  self.fetch_list page, order
end

Private Instance Methods

date_keys() click to toggle source
# File lib/crunchbase-api/organization.rb, line 81
def date_keys
  %w[founded_on closed_on]
end
property_keys() click to toggle source
# File lib/crunchbase-api/organization.rb, line 73
def property_keys
  %w[
    description short_description founded_on permalink primary_role is_closed closed_on homepage_url
    name created_at updated_at total_funding_usd number_of_investments number_of_employees stock_symbol stock_exchange
    role_company founded_on_trust_code closed_on_trust_code
  ]
end
relationships() click to toggle source
# File lib/crunchbase-api/organization.rb, line 85
def relationships
  %w[
    competitors funding_rounds founders products acquisitions ipo
  ]
end