Class: Crunchbase::Model::Job
- Defined in:
- lib/crunchbase/model/job.rb
Direct Known Subclasses
AdvisoryRole, BoardMembersAndAdvisor, CurrentTeam, FeaturedTeam, PastTeam, PrimaryAffiliation
Constant Summary collapse
- RESOURCE_LIST =
'jobs'
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Attributes.
-
#ended_on ⇒ Object
readonly
Attributes.
-
#ended_on_trust_code ⇒ Object
readonly
Attributes.
-
#job_type ⇒ Object
readonly
Attributes.
-
#organization ⇒ Object
readonly
Relationships.
-
#person ⇒ Object
readonly
Relationships.
-
#started_on ⇒ Object
readonly
Attributes.
-
#started_on_trust_code ⇒ Object
readonly
Attributes.
-
#title ⇒ Object
readonly
Attributes.
-
#updated_at ⇒ Object
readonly
Attributes.
Attributes inherited from Entity
Instance Method Summary collapse
- #date_keys ⇒ Object
-
#initialize(json) ⇒ Job
constructor
A new instance of Job.
- #property_keys ⇒ Object
- #relationship_lists ⇒ Object
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) ⇒ Job
Returns a new instance of Job.
14 15 16 |
# File 'lib/crunchbase/model/job.rb', line 14 def initialize(json) super end |
Instance Attribute Details
#created_at ⇒ Object (readonly)
Attributes
8 9 10 |
# File 'lib/crunchbase/model/job.rb', line 8 def created_at @created_at end |
#ended_on ⇒ Object (readonly)
Attributes
8 9 10 |
# File 'lib/crunchbase/model/job.rb', line 8 def ended_on @ended_on end |
#ended_on_trust_code ⇒ Object (readonly)
Attributes
8 9 10 |
# File 'lib/crunchbase/model/job.rb', line 8 def ended_on_trust_code @ended_on_trust_code end |
#job_type ⇒ Object (readonly)
Attributes
8 9 10 |
# File 'lib/crunchbase/model/job.rb', line 8 def job_type @job_type end |
#organization ⇒ Object (readonly)
Relationships
12 13 14 |
# File 'lib/crunchbase/model/job.rb', line 12 def organization @organization end |
#person ⇒ Object (readonly)
Relationships
12 13 14 |
# File 'lib/crunchbase/model/job.rb', line 12 def person @person end |
#started_on ⇒ Object (readonly)
Attributes
8 9 10 |
# File 'lib/crunchbase/model/job.rb', line 8 def started_on @started_on end |
#started_on_trust_code ⇒ Object (readonly)
Attributes
8 9 10 |
# File 'lib/crunchbase/model/job.rb', line 8 def started_on_trust_code @started_on_trust_code end |
#title ⇒ Object (readonly)
Attributes
8 9 10 |
# File 'lib/crunchbase/model/job.rb', line 8 def title @title end |
#updated_at ⇒ Object (readonly)
Attributes
8 9 10 |
# File 'lib/crunchbase/model/job.rb', line 8 def updated_at @updated_at end |
Instance Method Details
#date_keys ⇒ Object
31 32 33 |
# File 'lib/crunchbase/model/job.rb', line 31 def date_keys %w[started_on ended_on] end |
#property_keys ⇒ Object
25 26 27 28 29 |
# File 'lib/crunchbase/model/job.rb', line 25 def property_keys %w[ title job_type started_on started_on_trust_code ended_on ended_on_trust_code created_at updated_at ] end |
#relationship_lists ⇒ Object
18 19 20 21 22 23 |
# File 'lib/crunchbase/model/job.rb', line 18 def relationship_lists { 'person' => Person, 'organization' => Organization } end |