Class: ONIX2::Website

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_xml(data) ⇒ Object



15
16
17
# File 'lib/onix2/website.rb', line 15

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

Instance Method Details

#to_xmlObject



11
12
13
# File 'lib/onix2/website.rb', line 11

def to_xml
  WebsiteRepresenter.new(self).to_xml
end