Class: ONIX::ResourceVersionFeature
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
Instance Method Details
#notes ⇒ Object
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
|
#type ⇒ Object
13
14
15
|
# File 'lib/onix/supporting_resource.rb', line 13
def type
@resource_version_feature_type
end
|
#value ⇒ Object
17
18
19
|
# File 'lib/onix/supporting_resource.rb', line 17
def value
@feature_value
end
|