Module: Savon::Model

Defined in:
lib/savon/model.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



4
5
6
# File 'lib/savon/model.rb', line 4

def self.extended(base)
  base.setup
end

Instance Method Details

#operations(*operations) ⇒ Object

Accepts one or more SOAP operations and generates both class and instance methods named after the given operations. Each generated method accepts an optional SOAP message Hash.



15
16
17
18
19
20
# File 'lib/savon/model.rb', line 15

def operations(*operations)
  operations.each do |operation|
    define_class_operation(operation)
    define_instance_operation(operation)
  end
end

#setupObject



8
9
10
11
# File 'lib/savon/model.rb', line 8

def setup
  class_operation_module
  instance_operation_module
end