Class: ONIX::Identifier

Inherits:
SubsetDSL show all
Defined in:
lib/onix/identifier.rb

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

#nameObject



10
11
12
# File 'lib/onix/identifier.rb', line 10

def name
  @id_type_name
end

#typeObject



14
15
16
# File 'lib/onix/identifier.rb', line 14

def type
  nil
end

#uniq_idObject



18
19
20
# File 'lib/onix/identifier.rb', line 18

def uniq_id
  "#{type.code}-#{value}"
end

#valueObject



6
7
8
# File 'lib/onix/identifier.rb', line 6

def value
  @id_value
end