Class: WsdlMapper::SvcDesc::Wsdl11::Binding

Inherits:
Base
  • Object
show all
Defined in:
lib/wsdl_mapper/svc_desc/wsdl11/binding.rb

Defined Under Namespace

Classes: Body, Fault, Header, HeaderBase, HeaderFault, InputOutput, Operation, SoapFault

Instance Attribute Summary (collapse)

Attributes inherited from Base

#documentation, #name

Instance Method Summary (collapse)

Constructor Details

- (Binding) initialize(name)

Returns a new instance of Binding



114
115
116
117
118
119
# File 'lib/wsdl_mapper/svc_desc/wsdl11/binding.rb', line 114

def initialize(name)
  super name
  @operations = WsdlMapper::Dom::Directory.new do |name|
    []
  end
end

Instance Attribute Details

- (Object) style

Returns the value of attribute style



112
113
114
# File 'lib/wsdl_mapper/svc_desc/wsdl11/binding.rb', line 112

def style
  @style
end

- (Object) transport

Returns the value of attribute transport



112
113
114
# File 'lib/wsdl_mapper/svc_desc/wsdl11/binding.rb', line 112

def transport
  @transport
end

- (Object) type

Returns the value of attribute type



112
113
114
# File 'lib/wsdl_mapper/svc_desc/wsdl11/binding.rb', line 112

def type
  @type
end

- (Object) type_name

Returns the value of attribute type_name



112
113
114
# File 'lib/wsdl_mapper/svc_desc/wsdl11/binding.rb', line 112

def type_name
  @type_name
end

Instance Method Details

- (Object) add_operation(operation)



125
126
127
# File 'lib/wsdl_mapper/svc_desc/wsdl11/binding.rb', line 125

def add_operation(operation)
  @operations[operation.name] << operation
end

- (Boolean) document?

Returns:

  • (Boolean)


141
142
143
# File 'lib/wsdl_mapper/svc_desc/wsdl11/binding.rb', line 141

def document?
  !rpc?
end

- (Object) each_operation(&block)



121
122
123
# File 'lib/wsdl_mapper/svc_desc/wsdl11/binding.rb', line 121

def each_operation(&block)
  @operations.each_value.to_a.flatten.each &block
end

- (Object) get_operation(name)



133
134
135
# File 'lib/wsdl_mapper/svc_desc/wsdl11/binding.rb', line 133

def get_operation(name)
  @operations[name].first
end

- (Object) get_operations(name)



129
130
131
# File 'lib/wsdl_mapper/svc_desc/wsdl11/binding.rb', line 129

def get_operations(name)
  @operations[name]
end

- (Boolean) rpc?

Returns:

  • (Boolean)


137
138
139
# File 'lib/wsdl_mapper/svc_desc/wsdl11/binding.rb', line 137

def rpc?
  @style == 'rpc'
end