Class: Crunchbase::DeletedEntities::Client
- Inherits:
-
Object
- Object
- Crunchbase::DeletedEntities::Client
- 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
-
#conditions ⇒ Object
Returns the value of attribute conditions.
-
#count ⇒ Object
Returns the value of attribute count.
-
#entities ⇒ Object
Returns the value of attribute entities.
-
#entity_type ⇒ Object
Returns the value of attribute entity_type.
-
#total_count ⇒ Object
Returns the value of attribute total_count.
Instance Method Summary collapse
-
#deleted_entities ⇒ Object
Will include all attribute from API document.
-
#initialize(raw_data) ⇒ Client
constructor
A new instance of Client.
Methods included from Utilities::CbModel
cbobject, exact_kclass_object, kclass_name
Methods included from Utilities::Request
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
#conditions ⇒ Object
Returns the value of attribute conditions.
14 15 16 |
# File 'lib/crunchbase/deleted_entities/client.rb', line 14 def conditions @conditions end |
#count ⇒ Object
Returns the value of attribute count.
14 15 16 |
# File 'lib/crunchbase/deleted_entities/client.rb', line 14 def count @count end |
#entities ⇒ Object
Returns the value of attribute entities.
14 15 16 |
# File 'lib/crunchbase/deleted_entities/client.rb', line 14 def entities @entities end |
#entity_type ⇒ Object
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_count ⇒ Object
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_entities ⇒ Object
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 |