Class: CDMBL::OAIFilter
- Inherits:
-
Object
- Object
- CDMBL::OAIFilter
- 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
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
Instance Method Summary collapse
- #deletable_ids ⇒ Object
-
#initialize(headers: []) ⇒ OAIFilter
constructor
A new instance of OAIFilter.
- #updatable_ids ⇒ Object
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
#headers ⇒ Object (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_ids ⇒ Object
13 14 15 |
# File 'lib/cdmbl/oai_filter.rb', line 13 def deletable_ids deletables.map { |deletable| deletable.join(':')} end |
#updatable_ids ⇒ Object
9 10 11 |
# File 'lib/cdmbl/oai_filter.rb', line 9 def updatable_ids get_ids(find_mutatables_by { |id| id['status'] != 'deleted' }) end |