Class: ONIX::TitleDetail

Inherits:
SubsetDSL show all
Defined in:
lib/onix/descriptive_detail.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

#titleObject

:category: High level flatten title string



50
51
52
53
54
55
56
57
# File 'lib/onix/descriptive_detail.rb', line 50

def title
  title_element = @title_elements.product_level #select { |te| te.level.human=~/Product/ }
  if title_element.size > 0
    title_element.first.title
  else
    nil
  end
end

#typeObject



44
45
46
# File 'lib/onix/descriptive_detail.rb', line 44

def type
  @title_type
end