class Zuora::Calls::Upsert
Public Instance Methods
call_name()
click to toggle source
# File lib/zuora/calls/upsert.rb, line 13 def call_name raise 'This class is abstract. Subclassers must def :call_name' end
xml_builder()
click to toggle source
Generates a function that takes a builder adds call of call_name
and z-object(s) ogit rf type @return [Callable] - function of builder
# File lib/zuora/calls/upsert.rb, line 20 def xml_builder raise 'objects must respond to :each' unless objects.respond_to?(:each) lambda do |builder| builder[:api].send(call_name) do Zuora::Utils::Envelope.build_objects builder, type, objects end end end