Class: Crunchbase::Models::Ownership

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

Overview

Get the Ownership data from API

Constant Summary collapse

RESOURCE_LIST =
'ownerships'

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



19
20
21
22
23
24
25
26
27
28
# File 'lib/crunchbase/models/ownership.rb', line 19

def basis_fields
  %w[
    uuid
    permalink
    name
    ownee_identifier
    owner_identifier
    ownership_type
  ]
end

#field_idsObject



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

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

#full_cardsObject



30
31
32
33
34
35
36
# File 'lib/crunchbase/models/ownership.rb', line 30

def full_cards
  %w[
    child_organization
    parent_organization
    press_references
  ]
end