class FastshopCatalog::ParticipantService
Public Class Methods
new()
click to toggle source
Calls superclass method
FastshopCatalog::BaseService::new
# File lib/fastshop_catalog/participant_service.rb, line 4 def initialize @service = :participante @interface = 'IParticipante' @soap_method = :cadastrar_participante @return_key = 'Token' super end
Public Instance Methods
insert(participant)
click to toggle source
# File lib/fastshop_catalog/participant_service.rb, line 12 def insert(participant) payload = participant.to_json.to_s AUX_LOG.debug('Participant as json: ' + payload) service_invoker_with_encryption('entrada', 'contrato' => participant.contract_code, 'entrada' => payload) end