Class: ONIX::ONIX21::RelatedProduct

Inherits:
SubsetDSL show all
Includes:
IdentifiersMethods::Ean, IdentifiersMethods::ProprietaryId
Defined in:
lib/onix/onix21.rb

Instance Attribute Summary

Attributes included from Attributes

#attributes

Shortcuts collapse

Low level collapse

Instance Method Summary collapse

Methods included from IdentifiersMethods::ProprietaryId

#proprietary_ids

Methods included from IdentifiersMethods::Ean

#ean

Methods inherited from SubsetDSL

#get_class, ref_to_short, short_to_ref

Methods inherited from SubsetDSL

element, elements, #get_class, get_class, inherited, #initialize, n, #parse, ref_to_short, register_elements, register_scopes, #register_subset_array, registered_elements, #registered_elements, registered_scopes, scope, short_to_ref

Methods inherited from Subset

parse, #parse, #tag_match, #unsupported

Methods included from Attributes

attribute_class, #parse_attributes, #serialized_attributes

Constructor Details

This class inherits a constructor from ONIX::SubsetDSL

Instance Method Details

#codeString

shortcut for #relation_code

Returns:

  • (String)


240
# File 'lib/onix/onix21.rb', line 240

element "RelationCode", :text, :shortcut => :code

#identifiersArray<ProductIdentifier>

shortcut for #product_identifiers

Returns:



241
# File 'lib/onix/onix21.rb', line 241

elements "ProductIdentifier", :subset, :shortcut => :identifiers

#product=(v) ⇒ Object



243
244
# File 'lib/onix/onix21.rb', line 243

def product= v
end

#product_identifiersArray<ProductIdentifier>

Returns:



241
# File 'lib/onix/onix21.rb', line 241

elements "ProductIdentifier", :subset, :shortcut => :identifiers

#relation_codeString

Returns:

  • (String)


240
# File 'lib/onix/onix21.rb', line 240

element "RelationCode", :text, :shortcut => :code