Class: Crunchbase::Model::Organization

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

Constant Summary collapse

RESOURCE_LIST =
RESOURCE_NAME = 'organizations'

Instance Attribute Summary collapse

Attributes inherited from Entity

#type_name, #uuid

Instance Method Summary collapse

Methods inherited from Entity

#convert_date!, #fetch, #instance_multi_relationship_objects, #instance_relationships_object, #instance_timestamps, #one_to_many, #one_to_one, #parse_hash_items, #set_relationships_object, #set_variables, #setup_relationships_data!, #special_relationship, #verify_item?

Methods included from Request::Client

#api, #array_from_list, #funding_rounds_lists, #get, #kclass_name, #list, #organization_lists, #parsing_from_list, #person_lists, #total_items_from_list

Constructor Details

#initialize(json) ⇒ Organization

Returns a new instance of Organization.



30
31
32
# File 'lib/crunchbase/model/organization.rb', line 30

def initialize(json)
  super(json)
end

Instance Attribute Details

#acquired_byObject (readonly)

Returns the value of attribute acquired_by.



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

def acquired_by
  @acquired_by
end

#acquired_by_total_itemsObject (readonly)

Returns the value of attribute acquired_by_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def acquired_by_total_items
  @acquired_by_total_items
end

#acquisitionsObject (readonly)

Returns the value of attribute acquisitions.



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

def acquisitions
  @acquisitions
end

#acquisitions_total_itemsObject (readonly)

Returns the value of attribute acquisitions_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def acquisitions_total_items
  @acquisitions_total_items
end

#also_known_asObject (readonly)

Returns the value of attribute also_known_as.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def also_known_as
  @also_known_as
end

#api_pathObject (readonly)

Returns the value of attribute api_path.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def api_path
  @api_path
end

#api_urlObject (readonly)

Returns the value of attribute api_url.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def api_url
  @api_url
end

#board_members_and_advisorsObject (readonly)

Returns the value of attribute board_members_and_advisors.



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

def board_members_and_advisors
  @board_members_and_advisors
end

#board_members_and_advisors_total_itemsObject (readonly)

Returns the value of attribute board_members_and_advisors_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def board_members_and_advisors_total_items
  @board_members_and_advisors_total_items
end

#categoriesObject (readonly)

Returns the value of attribute categories.



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

def categories
  @categories
end

#categories_total_itemsObject (readonly)

Returns the value of attribute categories_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def categories_total_items
  @categories_total_items
end

#closed_onObject (readonly)

Returns the value of attribute closed_on.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def closed_on
  @closed_on
end

#closed_on_trust_codeObject (readonly)

Returns the value of attribute closed_on_trust_code.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def closed_on_trust_code
  @closed_on_trust_code
end

#competitorsObject (readonly)

Returns the value of attribute competitors.



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

def competitors
  @competitors
end

#competitors_total_itemsObject (readonly)

Returns the value of attribute competitors_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def competitors_total_items
  @competitors_total_items
end

#contact_emailObject (readonly)

Returns the value of attribute contact_email.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def contact_email
  @contact_email
end

#created_atObject (readonly)

Returns the value of attribute created_at.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def created_at
  @created_at
end

#current_teamObject (readonly)

Returns the value of attribute current_team.



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

def current_team
  @current_team
end

#current_team_total_itemsObject (readonly)

Returns the value of attribute current_team_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def current_team_total_items
  @current_team_total_items
end

#customersObject (readonly)

Returns the value of attribute customers.



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

def customers
  @customers
end

#customers_total_itemsObject (readonly)

Returns the value of attribute customers_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def customers_total_items
  @customers_total_items
end

#descriptionObject (readonly)

Returns the value of attribute description.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def description
  @description
end

Returns the value of attribute featured_team.



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

def featured_team
  @featured_team
end

Returns the value of attribute featured_team_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def featured_team_total_items
  @featured_team_total_items
end

#founded_onObject (readonly)

Returns the value of attribute founded_on.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def founded_on
  @founded_on
end

#founded_on_trust_codeObject (readonly)

Returns the value of attribute founded_on_trust_code.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def founded_on_trust_code
  @founded_on_trust_code
end

#foundersObject (readonly)

Returns the value of attribute founders.



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

def founders
  @founders
end

#founders_total_itemsObject (readonly)

Returns the value of attribute founders_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def founders_total_items
  @founders_total_items
end

#funding_roundsObject (readonly)

Returns the value of attribute funding_rounds.



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

def funding_rounds
  @funding_rounds
end

#funding_rounds_total_itemsObject (readonly)

Returns the value of attribute funding_rounds_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def funding_rounds_total_items
  @funding_rounds_total_items
end

#fundsObject (readonly)

Returns the value of attribute funds.



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

def funds
  @funds
end

#funds_total_itemsObject (readonly)

Returns the value of attribute funds_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def funds_total_items
  @funds_total_items
end

#headquartersObject (readonly)

Returns the value of attribute headquarters.



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

def headquarters
  @headquarters
end

#headquarters_total_itemsObject (readonly)

Returns the value of attribute headquarters_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def headquarters_total_items
  @headquarters_total_items
end

#homepage_urlObject (readonly)

Returns the value of attribute homepage_url.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def homepage_url
  @homepage_url
end

#imagesObject (readonly)

Returns the value of attribute images.



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

def images
  @images
end

#images_total_itemsObject (readonly)

Returns the value of attribute images_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def images_total_items
  @images_total_items
end

#investmentsObject (readonly)

Returns the value of attribute investments.



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

def investments
  @investments
end

#investments_total_itemsObject (readonly)

Returns the value of attribute investments_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def investments_total_items
  @investments_total_items
end

#investor_typeObject (readonly)

Returns the value of attribute investor_type.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def investor_type
  @investor_type
end

#investorsObject (readonly)

Returns the value of attribute investors.



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

def investors
  @investors
end

#investors_total_itemsObject (readonly)

Returns the value of attribute investors_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def investors_total_items
  @investors_total_items
end

#ipoObject (readonly)

Returns the value of attribute ipo.



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

def ipo
  @ipo
end

#ipo_total_itemsObject (readonly)

Returns the value of attribute ipo_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def ipo_total_items
  @ipo_total_items
end

#is_closedObject (readonly)

Returns the value of attribute is_closed.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def is_closed
  @is_closed
end

#membersObject (readonly)

Returns the value of attribute members.



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

def members
  @members
end

#members_total_itemsObject (readonly)

Returns the value of attribute members_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def members_total_items
  @members_total_items
end

#membershipsObject (readonly)

Returns the value of attribute memberships.



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

def memberships
  @memberships
end

#memberships_total_itemsObject (readonly)

Returns the value of attribute memberships_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def memberships_total_items
  @memberships_total_items
end

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def name
  @name
end

#newsObject (readonly)

Returns the value of attribute news.



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

def news
  @news
end

#news_total_itemsObject (readonly)

Returns the value of attribute news_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def news_total_items
  @news_total_items
end

#num_employees_maxObject (readonly)

Returns the value of attribute num_employees_max.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def num_employees_max
  @num_employees_max
end

#num_employees_minObject (readonly)

Returns the value of attribute num_employees_min.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def num_employees_min
  @num_employees_min
end

#number_of_investmentsObject (readonly)

Returns the value of attribute number_of_investments.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def number_of_investments
  @number_of_investments
end

#officesObject (readonly)

Returns the value of attribute offices.



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

def offices
  @offices
end

#offices_total_itemsObject (readonly)

Returns the value of attribute offices_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def offices_total_items
  @offices_total_items
end

#owned_byObject (readonly)

Returns the value of attribute owned_by.



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

def owned_by
  @owned_by
end

#owned_by_total_itemsObject (readonly)

Returns the value of attribute owned_by_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def owned_by_total_items
  @owned_by_total_items
end

#past_teamObject (readonly)

Returns the value of attribute past_team.



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

def past_team
  @past_team
end

#past_team_total_itemsObject (readonly)

Returns the value of attribute past_team_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def past_team_total_items
  @past_team_total_items
end

Returns the value of attribute permalink.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def permalink
  @permalink
end

Returns the value of attribute permalink_aliases.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def permalink_aliases
  @permalink_aliases
end

#phone_numberObject (readonly)

Returns the value of attribute phone_number.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def phone_number
  @phone_number
end

#primary_imageObject (readonly)

Returns the value of attribute primary_image.



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

def primary_image
  @primary_image
end

#primary_image_total_itemsObject (readonly)

Returns the value of attribute primary_image_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def primary_image_total_items
  @primary_image_total_items
end

#primary_roleObject (readonly)

Returns the value of attribute primary_role.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def primary_role
  @primary_role
end

#productsObject (readonly)

Returns the value of attribute products.



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

def products
  @products
end

#products_total_itemsObject (readonly)

Returns the value of attribute products_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def products_total_items
  @products_total_items
end

#profile_image_urlObject (readonly)

Returns the value of attribute profile_image_url.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def profile_image_url
  @profile_image_url
end

#rankObject (readonly)

Returns the value of attribute rank.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def rank
  @rank
end

#role_companyObject (readonly)

Returns the value of attribute role_company.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def role_company
  @role_company
end

#role_groupObject (readonly)

Returns the value of attribute role_group.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def role_group
  @role_group
end

#role_investorObject (readonly)

Returns the value of attribute role_investor.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def role_investor
  @role_investor
end

#role_schoolObject (readonly)

Returns the value of attribute role_school.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def role_school
  @role_school
end

#short_descriptionObject (readonly)

Returns the value of attribute short_description.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def short_description
  @short_description
end

#stock_exchangeObject (readonly)

Returns the value of attribute stock_exchange.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def stock_exchange
  @stock_exchange
end

#stock_symbolObject (readonly)

Returns the value of attribute stock_symbol.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def stock_symbol
  @stock_symbol
end

#sub_organizationsObject (readonly)

Returns the value of attribute sub_organizations.



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

def sub_organizations
  @sub_organizations
end

#sub_organizations_total_itemsObject (readonly)

Returns the value of attribute sub_organizations_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def sub_organizations_total_items
  @sub_organizations_total_items
end

#total_funding_usdObject (readonly)

Returns the value of attribute total_funding_usd.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def total_funding_usd
  @total_funding_usd
end

#updated_atObject (readonly)

Returns the value of attribute updated_at.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def updated_at
  @updated_at
end

#videosObject (readonly)

Returns the value of attribute videos.



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

def videos
  @videos
end

#videos_total_itemsObject (readonly)

Returns the value of attribute videos_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def videos_total_items
  @videos_total_items
end

#web_pathObject (readonly)

Returns the value of attribute web_path.



7
8
9
# File 'lib/crunchbase/model/organization.rb', line 7

def web_path
  @web_path
end

#websitesObject (readonly)

Returns the value of attribute websites.



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

def websites
  @websites
end

#websites_total_itemsObject (readonly)

Returns the value of attribute websites_total_items.



20
21
22
# File 'lib/crunchbase/model/organization.rb', line 20

def websites_total_items
  @websites_total_items
end

Instance Method Details

#date_keysObject



77
78
79
# File 'lib/crunchbase/model/organization.rb', line 77

def date_keys
  %w[founded_on closed_on]
end

#property_keysObject



34
35
36
37
38
39
40
41
42
43
44
# 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_listsObject



46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# 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