Module: DPN::Client::Agent::Ingest
- Included in:
- DPN::Client::Agent
- Defined in:
- lib/dpn/client/agent/ingest.rb
Overview
Operations on the ingest resource.
Instance Method Summary collapse
-
#create_ingest(ingest) {|Response| ... } ⇒ Response
Create a ingest.
-
#ingests(options = {page_size: 25}) {|Response| ... } ⇒ Object
Get the ingest index.
Instance Method Details
#create_ingest(ingest) {|Response| ... } ⇒ Response
Create a ingest
34 35 36 |
# File 'lib/dpn/client/agent/ingest.rb', line 34 def create_ingest(ingest, &block) post "/ingest/", ingest, &block end |
#ingests(options = {page_size: 25}) {|Response| ... } ⇒ Object
Get the ingest index
25 26 27 |
# File 'lib/dpn/client/agent/ingest.rb', line 25 def ingests( = {page_size: 25}, &block) paginate_each "/ingest/", , [:page_size], &block end |