Class: WsdlMapper::SvcGeneration::DocumentedPortGenerator

Inherits:
PortGenerator show all
Defined in:
lib/wsdl_mapper/svc_generation/documented_port_generator.rb

Instance Method Summary (collapse)

Methods inherited from PortGenerator

#generate_port, #generate_port_class, #generate_port_ctr

Methods inherited from GeneratorBase

#initialize

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

- (Object) generate_port_operation_accessors(f, ops)



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/wsdl_mapper/svc_generation/documented_port_generator.rb', line 6

def generate_port_operation_accessors(f, ops)
  yard = WsdlMapper::Generation::YardDocFormatter.new f
  ops.map do |op|
    attr_name = op.property_name.attr_name
    type = op.name.name
    yard.attribute! attr_name, type, nil do
      yard.tag :soap_name, op.type.name.name
    end
    f.attr_readers attr_name
  end
end