Class: Pupa::IdentifierList
- Inherits:
-
Array
- Object
- Array
- Pupa::IdentifierList
- Defined in:
- lib/pupa/models/identifier_list.rb
Overview
A list of identifiers.
Instance Method Summary collapse
-
#find_by_scheme(scheme) ⇒ String?
Returns the first identifier matching the scheme.
Instance Method Details
#find_by_scheme(scheme) ⇒ String?
Returns the first identifier matching the scheme.
8 9 10 11 12 13 14 |
# File 'lib/pupa/models/identifier_list.rb', line 8 def find_by_scheme(scheme) find{|identifier| identifier[:scheme] == scheme }.try{|identifier| identifier[:identifier] } end |