Class: Crunchbase::Models::DeletedEntity

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

Overview

For AutocompleteEntity

Instance Method Summary collapse

Methods inherited from Entity

#as_json, #fields, #setup_relationships

Methods included from Mappings

#card_num_field, #model_mappings

Methods included from Utilities::Response

dynamic_attributes

Instance Method Details

#basis_fieldsObject



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

def basis_fields
  %w[
    uuid
    entity_def_id
    deleted_at
    identifier
  ]
end

#field_idsObject



8
9
10
# File 'lib/crunchbase/models/deleted_entity.rb', line 8

def field_ids
  basis_fields
end

#parse_response(response) ⇒ Object



21
22
23
# File 'lib/crunchbase/models/deleted_entity.rb', line 21

def parse_response(response)
  dynamic_attributes(self, field_ids, response)
end