Sha256: 1e57039d38675740944ed54be43b2f47f792ed595723b9412987d58fcc0efbb7
Contents?: true
Size: 578 Bytes
Versions: 1
Compression:
Stored size: 578 Bytes
Contents
# coding: utf-8 module ONIX2 class SalesRestriction include Virtus.model attribute :sales_restriction_type, Integer def to_xml SalesRestrictionRepresenter.new(self).to_xml end def self.from_xml(data) SalesRestrictionRepresenter.new(self.new).from_xml(data) end end class SalesRestrictionRepresenter < Representable::Decorator include Representable::XML self.representation_wrap = :SalesRestriction property :sales_restriction_type, as: "SalesRestrictionType", render_filter: ::ONIX2::Formatters::TWO_DIGITS end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
onix2-1.0.0 | lib/onix2/sales_restriction.rb |