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'.freeze
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
- #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.
13 14 15 |
# File 'lib/crunchbase/model/job.rb', line 13 def initialize(json) super 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
30 31 32 |
# File 'lib/crunchbase/model/job.rb', line 30 def date_keys %w(started_on ended_on) end |
#property_keys ⇒ Object
24 25 26 27 28 |
# File 'lib/crunchbase/model/job.rb', line 24 def property_keys %w( title started_on started_on_trust_code ended_on ended_on_trust_code created_at updated_at ) end |
#relationship_lists ⇒ Object
17 18 19 20 21 22 |
# File 'lib/crunchbase/model/job.rb', line 17 def relationship_lists { 'person' => Person, 'organization' => Organization } end |