Class: WsdlMapper::SvcGeneration::DocumentedProxyGenerator
- Inherits:
-
ProxyGenerator
- Object
- Generation::Base
- GeneratorBase
- ProxyGenerator
- WsdlMapper::SvcGeneration::DocumentedProxyGenerator
- Defined in:
- lib/wsdl_mapper/svc_generation/documented_proxy_generator.rb
Instance Method Summary collapse
Methods inherited from ProxyGenerator
#generate_proxy, #generate_proxy_class, #operation_requires
Methods inherited from GeneratorBase
Methods inherited from Generation::Base
#append_file_for, #file, #file_for, #generate_name, #get_formatter, #get_module_names, #get_type_name, #initialize, #type_file_for
Constructor Details
This class inherits a constructor from WsdlMapper::SvcGeneration::GeneratorBase
Instance Method Details
#generate_async_operation(f, op) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/wsdl_mapper/svc_generation/documented_proxy_generator.rb', line 23 def generate_async_operation(f, op) yard = WsdlMapper::Generation::YardDocFormatter.new f f.blank_line yard.text op.type.name.name yard.blank_line yard.tag :xml_name, op.type.name.name yard.tag :xml_namespace, op.type.name.ns yard.param :body_promise, 'Concurrent::Promise', 'Promise delivering keyword arguments (Hash) for the InputBody constructor' yard.blank_line super end |
#generate_operation(f, op) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/wsdl_mapper/svc_generation/documented_proxy_generator.rb', line 7 def generate_operation(f, op) yard = WsdlMapper::Generation::YardDocFormatter.new f f.blank_line yard.text op.type.name.name yard.blank_line yard.tag :xml_name, op.type.name.name yard.tag :xml_namespace, op.type.name.ns yard.param :body, '::Hash', 'Keyword arguments for the InputBody constructor' get_body_parts(op.type.input).each do |part| type = @generator.get_ruby_type_name part.type yard.option :body, type, part.property_name.attr_name end yard.blank_line super end |