Module: DPN::Client::Agent::FixityCheck

Included in:
DPN::Client::Agent
Defined in:
lib/dpn/client/agent/fixity_check.rb

Overview

Operations on the fixity_check resource.

Instance Method Summary collapse

Instance Method Details

#create_fixity_check(fixity_check) {|Response| ... } ⇒ Response

Create a fixity_check

Parameters:

  • fixity_check (Hash)

    Body of the fixity_check

Yields:

Returns:


33
34
35
# File 'lib/dpn/client/agent/fixity_check.rb', line 33

def create_fixity_check(fixity_check, &block)
  post "/fixity_check/", fixity_check, &block
end

#fixity_checks(options = {page_size: 25}) {|Response| ... } ⇒ Object

Get the fixity_check index

Parameters:

  • options (Hash) (defaults to: {page_size: 25})

Options Hash (options):

  • :page_size (Fixnum) — default: 25

    Number of results per page

  • :before (DateTime String) — default: nil

    Include only entries last modified before this date.

  • :after (DateTime String) — default: nil

    Include only entries last modified after this date.

  • bag (String) — default: nil

    Filter by a specific bag’s UUID.

  • latest (Boolean) — default: false

    Request latest results only.

  • :node (String) — default: nil

    Namespace of the node.

Yields:

  • (Response)

    Block to process each individual result.


24
25
26
# File 'lib/dpn/client/agent/fixity_check.rb', line 24

def fixity_checks(options = {page_size: 25}, &block)
  paginate_each "/fixity_check/", options, options[:page_size], &block
end