Class: WsdlMapper::SvcDesc::Wsdl11::Service
- Inherits:
-
Base
- Object
- Base
- WsdlMapper::SvcDesc::Wsdl11::Service
- Defined in:
- lib/wsdl_mapper/svc_desc/wsdl11/service.rb
Defined Under Namespace
Classes: Port
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary (collapse)
- - (Object) add_port(port)
- - (Object) each_port(&block)
-
- (Service) initialize(name)
constructor
A new instance of Service.
Constructor Details
- (Service) initialize(name)
Returns a new instance of Service
12 13 14 15 |
# File 'lib/wsdl_mapper/svc_desc/wsdl11/service.rb', line 12 def initialize(name) super name @ports = WsdlMapper::Dom::Directory.new end |
Instance Method Details
- (Object) add_port(port)
17 18 19 |
# File 'lib/wsdl_mapper/svc_desc/wsdl11/service.rb', line 17 def add_port(port) @ports[port.name] = port end |
- (Object) each_port(&block)
21 22 23 |
# File 'lib/wsdl_mapper/svc_desc/wsdl11/service.rb', line 21 def each_port(&block) @ports.each_value &block end |