Class: ONIX2::Price

Inherits:
Object
  • Object
show all
Defined in:
lib/onix2/price.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_xml(data) ⇒ Object



24
25
26
# File 'lib/onix2/price.rb', line 24

def self.from_xml(data)
  PriceRepresenter.new(self.new).from_xml(data)
end

Instance Method Details

#to_xmlObject



20
21
22
# File 'lib/onix2/price.rb', line 20

def to_xml
  PriceRepresenter.new(self).to_xml
end