Class: ONIX::Identifier
- Defined in:
- lib/onix/identifier.rb
Direct Known Subclasses
AddresseeIdentifier, AgentIdentifier, CollectionIdentifier, ImprintIdentifier, NameIdentifier, ProductIdentifier, PublisherIdentifier, SalesOutletIdentifier, SenderIdentifier, SupplierIdentifier, WorkIdentifier
Instance Method Summary collapse
Methods inherited from SubsetDSL
_ancestor_registered_scopes, _ancestors_registered_elements, ancestor_registered_scopes, ancestors_registered_elements, element, elements, get_class, #initialize, #parse, ref_to_short, registered_elements, registered_scopes, scope, short_to_ref, #unsupported
Methods inherited from Subset
parse, #parse, tag_match, #tag_match, #unsupported
Constructor Details
This class inherits a constructor from ONIX::SubsetDSL
Instance Method Details
#name ⇒ Object
10 11 12 |
# File 'lib/onix/identifier.rb', line 10 def name @id_type_name end |
#type ⇒ Object
14 15 16 |
# File 'lib/onix/identifier.rb', line 14 def type nil end |
#uniq_id ⇒ Object
18 19 20 |
# File 'lib/onix/identifier.rb', line 18 def uniq_id "#{type.code}-#{value}" end |
#value ⇒ Object
6 7 8 |
# File 'lib/onix/identifier.rb', line 6 def value @id_value end |