Module: Stir::Operations::ClassMethods
- Defined in:
- lib/stir/soap/operations.rb
Instance Method Summary collapse
Instance Method Details
#operation(op_name, op_alias = nil) ⇒ Object
39 40 41 42 43 44 45 46 |
# File 'lib/stir/soap/operations.rb', line 39 def operation(op_name, op_alias = nil) self.send(:define_method, op_name) { |*args| @response = get_client.call(op_name, *args) } operations.push(op_name) unless op_alias.nil? || op_alias.empty? self.send(:define_method, op_alias) { |*args| send(op_name, *args) } operations.push(op_alias) end end |