class ONIX::TitleDetail

High level

↑ top

Public Instance Methods

title() click to toggle source

flatten title string @return [String]

# File lib/onix/title_detail.rb, line 14
def title
  return title_statement if title_statement

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