Sha256: 1a9da0ea0432e0bfbf110e452537c6fb0ae22e84cb5fa00e5b9285720d241f03

Contents?: true

Size: 438 Bytes

Versions: 8

Compression:

Stored size: 438 Bytes

Contents

module Plaid
  module AddUser
      def add_user(api_level,username,password,type,pin=nil,options=nil)
        begin
          payload = {username:username,password:password,type:type}
          payload.merge!(pin:pin) if pin
          payload.merge!(options: options) if options
          res = self.post(api_level,payload)
          self.user(res,api_level)
        rescue => e
          error_handler(e)
        end
      end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
plaid-1.4.0 lib/plaid/add_user.rb
plaid-1.3.0 lib/plaid/add_user.rb
plaid-1.2.3 lib/plaid/add_user.rb
plaid-1.2.2 lib/plaid/add_user.rb
plaid-1.1.2 lib/plaid/add_user.rb
plaid-1.2.1 lib/plaid/add_user.rb
plaid-1.2.0 lib/plaid/add_user.rb
plaid-1.1.1 lib/plaid/add_user.rb