Module: TaliaCore::Oai::OaiAdapterClassMethods

Included in:
ActiveSourceOaiAdapter
Defined in:
lib/talia_core/oai/active_source_oai_adapter/class_methods.rb

Instance Method Summary collapse

Instance Method Details

#namespaced_field(namespace, *fields) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/talia_core/oai/active_source_oai_adapter/class_methods.rb', line 6

def namespaced_field(namespace, *fields)
  fields.each do |field|
    define_method(field.to_sym) do
      @record.predicate(namespace, field.to_s).values
    end
  end
end