class Crunchbase::Model::Person
Constants
- RESOURCE_LIST
Attributes
advisory_roles[R]
advisory_roles_total_items[R]
also_known_as[R]
api_path[R]
api_url[R]
bio[R]
born_on[R]
born_on_trust_code[R]
created_at[R]
degrees[R]
degrees_total_items[R]
died_on[R]
died_on_trust_code[R]
first_name[R]
founded_companies[R]
founded_companies_total_items[R]
gender[R]
images[R]
images_total_items[R]
investments[R]
investments_total_items[R]
is_deceased[R]
jobs[R]
jobs_total_items[R]
last_name[R]
memberships[R]
memberships_total_items[R]
news[R]
news_total_items[R]
permalink[R]
permalink_aliases[R]
primary_affiliation[R]
primary_affiliation_total_items[R]
primary_image[R]
primary_image_total_items[R]
primary_location[R]
primary_location_total_items[R]
profile_image_url[R]
rank[R]
role_investor[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/person.rb, line 22 def initialize(json) super(json) end
Public Instance Methods
date_keys()
click to toggle source
# File lib/crunchbase/model/person.rb, line 53 def date_keys %w[born_on died_on] end
name()
click to toggle source
custom name from first name and last name
# File lib/crunchbase/model/person.rb, line 58 def name [first_name, last_name].compact.join(' ') end
property_keys()
click to toggle source
# File lib/crunchbase/model/person.rb, line 44 def property_keys %w[ permalink permalink_aliases api_path api_url web_path rank first_name last_name gender also_known_as bio profile_image_url role_investor born_on born_on_trust_code is_deceased died_on died_on_trust_code created_at updated_at ] end
relationship_lists()
click to toggle source
# File lib/crunchbase/model/person.rb, line 26 def relationship_lists { 'primary_affiliation' => PrimaryAffiliation, 'primary_location' => PrimaryLocation, 'primary_image' => PrimaryImage, 'websites' => Website, 'degrees' => Degree, 'jobs' => Job, 'advisory_roles' => AdvisoryRole, 'founded_companies' => FoundedCompany, 'investments' => Investment, 'memberships' => Membership, 'images' => Image, 'videos' => Video, 'news' => New } end