Sha256: 75a7ceb2802dbe8ec875c7c66c4bc786ecadc2d067470b2062d644603e72cdb9

Contents?: true

Size: 1.26 KB

Versions: 6

Compression:

Stored size: 1.26 KB

Contents

require_relative "../abstract"

class Verify_request < MoceanFactory
    
    def __init__ client
        super(client)
        @required_fields = ['mocean-api-key','mocean-api-secret','mocean-to','mocean-brand']
    end
    
    def setTo param
        @params['mocean-to'] = param
        return self
    end
    
    def setBrand
        @params['mocean-brand'] = param
        return self;
    end
    
    def setFrom param
        @params['mocean-from'] = param
        return self;
    end
    
    def setTemplate param
        @params['mocean-template'] = param
        return self;
    end
    
    def setPinValidate param
        @params['mocean-pin-validate'] = param
        return self
    end
    
    def setNextEventWait param
        @params['mocean-next-event-wait'] = param
        return self
    end
    
    def setRespFormat param
        @params['mocean-resp-format'] = param
        return self
    end
    
    def create params = {}
        reset
        super(params)
        return self
    end
    
    def send 
        createFinalParams
        isRequiredFieldsSet
        response = Transmitter.new('/rest/1/verify/req','post',@params)
        return response.getResponse()
    end
    
    
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
moceansdk-0.1.7 lib/moceansdk/modules/message/verify_request.rb
moceansdk-0.1.6 lib/moceansdk/modules/message/verify_request.rb
moceansdk-0.1.5 lib/moceansdk/modules/message/verify_request.rb
moceansdk-0.1.4 lib/moceansdk/modules/message/verify_request.rb
moceansdk-0.1.3 lib/moceansdk/modules/message/verify_request.rb
moceansdk-0.1.2 lib/moceansdk/modules/message/verify_request.rb