Class: Ap4r::AsyncHelper::Converters::WebService

Inherits:
ToRailsBase show all
Defined in:
lib/ap4r/async_helper.rb

Direct Known Subclasses

SOAP, XmlRpc

Instance Method Summary collapse

Methods inherited from ToRailsBase

#initialize, #queue_name

Methods inherited from Base

dispatch_mode, #initialize, #queue_name

Constructor Details

This class inherits a constructor from Ap4r::AsyncHelper::Converters::ToRailsBase

Instance Method Details

#action_api_nameObject



297
298
299
300
# File 'lib/ap4r/async_helper.rb', line 297

def action_api_name
  action_method_name = @url_options[:url][:action]
  action_method_name.camelcase
end

#make_paramsObject



285
286
287
288
289
# File 'lib/ap4r/async_helper.rb', line 285

def make_params
  message_obj = {}
  @async_params.each_pair{|k,v| message_obj[k.to_sym]=v}
  message_obj
end

#make_rm_optionsObject



291
292
293
294
295
# File 'lib/ap4r/async_helper.rb', line 291

def make_rm_options
  @rm_options[:target_url] ||= target_url_name
  @rm_options[:target_action] ||= action_api_name
  @rm_options
end

#options_without_actionObject



302
303
304
# File 'lib/ap4r/async_helper.rb', line 302

def options_without_action
  @url_options[:url].reject{ |k,v| k == :action }
end