Class: CDMBL::OAIFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/cdmbl/oai_filter.rb

Overview

This class has been named in a way that makes it hard to pronounce

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(headers: []) ⇒ OAIFilter

Returns a new instance of OAIFilter.



5
6
7
# File 'lib/cdmbl/oai_filter.rb', line 5

def initialize(headers: [])
  @headers = headers
end

Instance Attribute Details

#headersObject (readonly)

Returns the value of attribute headers.



4
5
6
# File 'lib/cdmbl/oai_filter.rb', line 4

def headers
  @headers
end

Instance Method Details

#deletable_idsObject



13
14
15
# File 'lib/cdmbl/oai_filter.rb', line 13

def deletable_ids
  deletables.map { |deletable| deletable.join(':')}
end

#updatable_idsObject



9
10
11
# File 'lib/cdmbl/oai_filter.rb', line 9

def updatable_ids
  get_ids(find_mutatables_by { |id| id['status'] != 'deleted' })
end