Class: Crunchbase::Models::Job

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

Overview

Get the Principal data from API

Constant Summary collapse

RESOURCE_LIST =
'jobs'

Instance Method Summary collapse

Methods inherited from Entity

#as_json, #fields, #parse_response, #setup_relationships

Methods included from Mappings

#card_num_field, #model_mappings

Methods included from Utilities::Response

dynamic_attributes

Instance Method Details

#basis_fieldsObject



21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/crunchbase/models/job.rb', line 21

def basis_fields
  %w[
    uuid
    name
    title
    started_on
    ended_on
    permalink
    job_type
    is_current
    organization_identifier
    person_identifier
  ]
end

#field_idsObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/crunchbase/models/job.rb', line 10

def field_ids
  %w[
    created_at
    employee_featured_order
    entity_def_id
    identifier
    short_description
    updated_at
  ] + basis_fields
end

#full_cardsObject



36
37
38
39
# File 'lib/crunchbase/models/job.rb', line 36

def full_cards
  %w[
  ]
end