Class: Crunchbase::Model::Job
- Defined in:
- lib/crunchbase/model/job.rb
Direct Known Subclasses
AdvisoryRole, BoardMembersAndAdvisor, CurrentTeam, PastTeam, PrimaryAffiliation
Constant Summary collapse
- RESOURCE_LIST =
'jobs'
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#ended_on ⇒ Object
readonly
Returns the value of attribute ended_on.
-
#ended_on_trust_code ⇒ Object
readonly
Returns the value of attribute ended_on_trust_code.
-
#organization ⇒ Object
readonly
Returns the value of attribute organization.
-
#person ⇒ Object
readonly
Returns the value of attribute person.
-
#started_on ⇒ Object
readonly
Returns the value of attribute started_on.
-
#started_on_trust_code ⇒ Object
readonly
Returns the value of attribute started_on_trust_code.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Attributes inherited from Entity
Instance Method Summary collapse
- #date_keys ⇒ Object
-
#initialize(json) ⇒ Job
constructor
A new instance of Job.
- #property_keys ⇒ Object
Methods inherited from Entity
array_from_list, #fetch, funding_rounds_lists, get, list, organization_lists, parsing_from_list, person_lists, total_items_from_list
Constructor Details
#initialize(json) ⇒ Job
13 14 15 16 17 18 19 20 |
# File 'lib/crunchbase/model/job.rb', line 13 def initialize(json) super unless (relationships = json['relationships']).nil? instance_relationships_object(Crunchbase::Model::Person, 'person', relationships['person']) instance_relationships_object(Crunchbase::Model::Organization, 'organization', relationships['organization']) end end |
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
8 9 10 |
# File 'lib/crunchbase/model/job.rb', line 8 def created_at @created_at end |
#ended_on ⇒ Object (readonly)
Returns the value of attribute ended_on.
8 9 10 |
# File 'lib/crunchbase/model/job.rb', line 8 def ended_on @ended_on end |
#ended_on_trust_code ⇒ Object (readonly)
Returns the value of attribute ended_on_trust_code.
8 9 10 |
# File 'lib/crunchbase/model/job.rb', line 8 def ended_on_trust_code @ended_on_trust_code end |
#organization ⇒ Object (readonly)
Returns the value of attribute organization.
11 12 13 |
# File 'lib/crunchbase/model/job.rb', line 11 def organization @organization end |
#person ⇒ Object (readonly)
Returns the value of attribute person.
11 12 13 |
# File 'lib/crunchbase/model/job.rb', line 11 def person @person end |
#started_on ⇒ Object (readonly)
Returns the value of attribute started_on.
8 9 10 |
# File 'lib/crunchbase/model/job.rb', line 8 def started_on @started_on end |
#started_on_trust_code ⇒ Object (readonly)
Returns the value of attribute started_on_trust_code.
8 9 10 |
# File 'lib/crunchbase/model/job.rb', line 8 def started_on_trust_code @started_on_trust_code end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
8 9 10 |
# File 'lib/crunchbase/model/job.rb', line 8 def title @title end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
8 9 10 |
# File 'lib/crunchbase/model/job.rb', line 8 def updated_at @updated_at end |
Instance Method Details
#date_keys ⇒ Object
28 29 30 |
# File 'lib/crunchbase/model/job.rb', line 28 def date_keys %w[ started_on ended_on ] end |
#property_keys ⇒ Object
22 23 24 25 26 |
# File 'lib/crunchbase/model/job.rb', line 22 def property_keys %w[ title started_on started_on_trust_code ended_on ended_on_trust_code created_at updated_at ] end |