class ONIX::RelatedProduct
Attributes
product[RW]
full Product
if referenced in ONIXMessage
@return [Product]
Public Instance Methods
code()
click to toggle source
@return [ProductRelationCode]
# File lib/onix/related_product.rb, line 16 def code self.codes.first end
file_format()
click to toggle source
@!group High level @return [String]
# File lib/onix/related_product.rb, line 22 def file_format file_formats.first.human if file_formats.first end
file_formats()
click to toggle source
@return [Array<ProductFormDetail>]
# File lib/onix/related_product.rb, line 29 def file_formats @product_form_details.select { |fd| fd.code =~ /^E1.*/ } end