class Elibri::ONIX::Release_3_0::SupplierIdentifier

Constants

ATTRIBUTES
RELATIONS

Attributes

to_xml[RW]
type[RW]
type_name[RW]
value[RW]

Public Class Methods

new(data) click to toggle source
# File lib/elibri_onix/onix_3_0/supplier_identifier.rb, line 27
def initialize(data)
  @to_xml = data.to_s
  @type = data.at_css('SupplierIDType').try(:text)
  @type_name = data.at_css('IDTypeName').try(:text)
  @value = data.at_css('IDValue').try(:text)
end