Sha256: 60c1f09ca0d8ded68b4877c53d0bf5b8b494e34854f3a9b2e8c4bc31f88e09cc

Contents?: true

Size: 865 Bytes

Versions: 2

Compression:

Stored size: 865 Bytes

Contents

require_relative "../abstract"

class Verify_validate < MoceanFactory
    
    def __init__ client
        super(client)
        @required_fields = ['mocean-api-key','mocean-api-secret','mocean-reqid','mocean-otp-code']
    end
    
    def setReqid param
        @params['mocean-reqid'] = param
        return self
    end
    
    def setOtpCode param
        @params['mocean-otp-code'] = param
        return self
    end
    
    def setRespFormat param
        @params['mocean-resp-format'] = param
        return self
    end
    
    def create params = {}
        reset
        super(param)
        return self
    end
    
    def send 
        createFinalParams
        isRequiredFieldsSet
        response = Transmitter.new('/rest/1/verify/check','post',@params)
        return response.getResponse()
    end
    
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
moceansdk-0.1.3 lib/moceansdk/modules/message/verify_validate.rb
moceansdk-0.1.2 lib/moceansdk/modules/message/verify_validate.rb