Module: Rews::View::Xml

Defined in:
lib/rews/view.rb

Class Method Summary collapse

Class Method Details

.write_item_view(view_type, attrs, &proc) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/rews/view.rb', line 8

def write_item_view(view_type, attrs, &proc)
  xml = Builder::XmlMarkup.new
  xml.wsdl view_type, Util::camel_keys(attrs) do
    proc.call(xml) if proc
  end
  xml.target!
end