Class: Crunchbase::Model::CurrentTeam

Inherits:
Job
  • Object
show all
Defined in:
lib/crunchbase/model/current_team.rb

Constant Summary collapse

RESOURCE_LIST =
'current_team'

Instance Attribute Summary collapse

Attributes inherited from Job

#created_at, #ended_on, #ended_on_trust_code, #organization, #started_on, #started_on_trust_code, #title, #updated_at

Attributes inherited from Entity

#type_name, #uuid

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Job

#date_keys, #property_keys

Methods inherited from Entity

array_from_list, #fetch, funding_rounds_lists, list, organization_lists, parsing_from_list, person_lists, total_items_from_list

Constructor Details

#initialize(json) ⇒ CurrentTeam

Returns a new instance of CurrentTeam.



10
11
12
13
14
15
16
# File 'lib/crunchbase/model/current_team.rb', line 10

def initialize(json)
  super

  unless (relationships = json['relationships']).nil?
    instance_relationships_object(Crunchbase::Model::Person, 'person', relationships['person'])
  end
end

Instance Attribute Details

#personObject (readonly)

Returns the value of attribute person.



8
9
10
# File 'lib/crunchbase/model/current_team.rb', line 8

def person
  @person
end

Class Method Details

.get(permalink) ⇒ Object

Factory method to return an instance from a permalink



19
20
21
# File 'lib/crunchbase/model/current_team.rb', line 19

def self.get(permalink)
  nil
end