Class: ONIX::ResourceVersionFeature

Inherits:
SubsetDSL show all
Defined in:
lib/onix/supporting_resource.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, ref_to_short, registered_elements, registered_scopes, scope, short_to_ref, #unsupported

Methods inherited from Subset

parse, #tag_match, tag_match, #unsupported

Constructor Details

This class inherits a constructor from ONIX::SubsetDSL

Instance Method Details

#notesObject



21
22
23
# File 'lib/onix/supporting_resource.rb', line 21

def notes
  @feature_notes
end

#parse(n) ⇒ Object



25
26
27
28
29
30
31
# File 'lib/onix/supporting_resource.rb', line 25

def parse(n)
  super

  if @resource_version_feature_type.human=="FileFormat"
    @feature_value=SupportingResourceFileFormat.from_code(@feature_value)
  end
end

#typeObject



13
14
15
# File 'lib/onix/supporting_resource.rb', line 13

def type
  @resource_version_feature_type
end

#valueObject



17
18
19
# File 'lib/onix/supporting_resource.rb', line 17

def value
  @feature_value
end