Module: Rews::Shape::Xml

Defined in:
lib/rews/shape.rb

Class Method Summary collapse

Class Method Details

.write_additional_properties(xml, additional_properties) ⇒ Object



15
16
17
18
19
20
21
22
23
24
# File 'lib/rews/shape.rb', line 15

def write_additional_properties(xml, additional_properties)
  return if !additional_properties
  xml.t :AdditionalProperties do
    additional_properties.each do |additional_property|
      if additional_property[0] == :field_uri
        xml.t :FieldURI, :FieldURI=>additional_property[1]
      end
    end
  end
end

.write_shape(shape_type, &proc) ⇒ Object



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

def write_shape(shape_type, &proc)
  xml = Builder::XmlMarkup.new
  xml.wsdl shape_type do
    proc.call(xml)
  end
  xml.target!
end