module ONIX::EanMethods
Public Instance Methods
ean()
click to toggle source
EAN string identifier from identifiers @return [String]
# File lib/onix/identifier.rb, line 78 def ean if ean_identifier ean_identifier.value else nil end end
Private Instance Methods
ean_identifier()
click to toggle source
# File lib/onix/identifier.rb, line 87 def ean_identifier self.identifiers.select { |id| id.type.human=="Gtin13" }.first || self.identifiers.select { |id| id.type.human=="Isbn13" }.first end