Skip to content

Commit

Permalink
moved xml-related objects into its own namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
rubiii committed Jul 15, 2013
1 parent 2ed422d commit 52aa8ae
Show file tree
Hide file tree
Showing 8 changed files with 318 additions and 312 deletions.
11 changes: 0 additions & 11 deletions lib/savon/attribute.rb

This file was deleted.

80 changes: 0 additions & 80 deletions lib/savon/element.rb

This file was deleted.

218 changes: 0 additions & 218 deletions lib/savon/element_builder.rb

This file was deleted.

4 changes: 2 additions & 2 deletions lib/savon/wsdl/input_output.rb
Expand Up @@ -27,8 +27,8 @@ def build_parts
header_part_names = header_parts.map { |part| part[:name] }
body_parts.reject! { |part| header_part_names.include? part[:name] }

@header_parts = ElementBuilder.new(@wsdl.schemas).build(header_parts)
@body_parts = ElementBuilder.new(@wsdl.schemas).build(body_parts)
@header_parts = XML::ElementBuilder.new(@wsdl.schemas).build(header_parts)
@body_parts = XML::ElementBuilder.new(@wsdl.schemas).build(body_parts)
end

def collect_body_parts
Expand Down
2 changes: 1 addition & 1 deletion lib/savon/wsdl/operation.rb
@@ -1,5 +1,5 @@
require 'savon/wsdl/input_output'
require 'savon/element_builder'
require 'savon/xml/element_builder'

class Savon
class WSDL
Expand Down
13 changes: 13 additions & 0 deletions lib/savon/xml/attribute.rb
@@ -0,0 +1,13 @@
class Savon
class XML
class Attribute

attr_accessor :name, :base_type, :use

def optional?
use == 'optional'
end

end
end
end

0 comments on commit 52aa8ae

Please sign in to comment.