Class: Crunchbase::Model::Job

Inherits:
Entity
  • Object
show all
Defined in:
lib/crunchbase/model/job.rb

Constant Summary collapse

RESOURCE_LIST =
'jobs'

Instance Attribute Summary collapse

Attributes inherited from Entity

#type_name, #uuid

Instance Method Summary collapse

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_atObject (readonly)

Attributes



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

def created_at
  @created_at
end

#ended_onObject (readonly)

Attributes



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

def ended_on
  @ended_on
end

#ended_on_trust_codeObject (readonly)

Attributes



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

def ended_on_trust_code
  @ended_on_trust_code
end

#job_typeObject (readonly)

Attributes



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

def job_type
  @job_type
end

#organizationObject (readonly)

Relationships



12
13
14
# File 'lib/crunchbase/model/job.rb', line 12

def organization
  @organization
end

#personObject (readonly)

Relationships



12
13
14
# File 'lib/crunchbase/model/job.rb', line 12

def person
  @person
end

#started_onObject (readonly)

Attributes



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

def started_on
  @started_on
end

#started_on_trust_codeObject (readonly)

Attributes



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

def started_on_trust_code
  @started_on_trust_code
end

#titleObject (readonly)

Attributes



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

def title
  @title
end

#updated_atObject (readonly)

Attributes



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

def updated_at
  @updated_at
end

Instance Method Details

#date_keysObject



31
32
33
# File 'lib/crunchbase/model/job.rb', line 31

def date_keys
  %w[started_on ended_on]
end

#property_keysObject



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_listsObject



18
19
20
21
22
23
# File 'lib/crunchbase/model/job.rb', line 18

def relationship_lists
  {
    'person' => Person,
    'organization' => Organization
  }
end