Class: Crunchbase::Model::CurrentTeam
- Defined in:
- lib/crunchbase/model/current_team.rb
Constant Summary collapse
- RESOURCE_LIST =
'current_team'
Instance Attribute Summary collapse
-
#person ⇒ Object
readonly
Returns the value of attribute person.
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
Class Method Summary collapse
-
.get(permalink) ⇒ Object
Factory method to return an instance from a permalink.
Instance Method Summary collapse
-
#initialize(json) ⇒ CurrentTeam
constructor
A new instance of CurrentTeam.
Methods inherited from Job
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
#person ⇒ Object (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 |