Class: Crunchbase::DeletedEntities::Client

Inherits:
Object
  • Object
show all
Includes:
Utilities::CbModel, Utilities::Request
Defined in:
lib/crunchbase/deleted_entities/client.rb

Overview

Send request for deleted_entities endpoint

Constant Summary collapse

ROOT_LIST =
'deleted_entities'
LIMIT =
1000

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utilities::CbModel

cbobject, exact_kclass_object, kclass_name

Methods included from Utilities::Request

deleted, entity, get, search

Constructor Details

#initialize(raw_data) ⇒ Client

Returns a new instance of Client.



19
20
21
22
# File 'lib/crunchbase/deleted_entities/client.rb', line 19

def initialize(raw_data)
  @conditions = raw_data
  @entity_type = 'deleted_entity'
end

Instance Attribute Details

#conditionsObject

Returns the value of attribute conditions.



14
15
16
# File 'lib/crunchbase/deleted_entities/client.rb', line 14

def conditions
  @conditions
end

#countObject

Returns the value of attribute count.



14
15
16
# File 'lib/crunchbase/deleted_entities/client.rb', line 14

def count
  @count
end

#entitiesObject

Returns the value of attribute entities.



14
15
16
# File 'lib/crunchbase/deleted_entities/client.rb', line 14

def entities
  @entities
end

#entity_typeObject

Returns the value of attribute entity_type.



14
15
16
# File 'lib/crunchbase/deleted_entities/client.rb', line 14

def entity_type
  @entity_type
end

#total_countObject

Returns the value of attribute total_count.



14
15
16
# File 'lib/crunchbase/deleted_entities/client.rb', line 14

def total_count
  @total_count
end

Instance Method Details

#deleted_entitiesObject

Will include all attribute from API document



25
26
27
28
29
30
31
32
# File 'lib/crunchbase/deleted_entities/client.rb', line 25

def deleted_entities
  wrapping_deleted_entities!(
    deleted(
      ROOT_LIST,
      deleted_entities_parameters
    )
  )
end