Sha256: cd06073510090bc90e366f6908b3c1a9336380fc16e6d919b8d18d32d18c3c3c

Contents?: true

Size: 401 Bytes

Versions: 9

Compression:

Stored size: 401 Bytes

Contents

# frozen_string_literal: true
require_relative "../response/user_response"

module ONEAccess
  module API
    class User < Base
      api_path "/user"

      def self.get_by_email(first_name:, last_name:, email:)
        resp = send_get("getbyemail", userFirstName: first_name, userLastName: last_name, userEmail: email)
        Response::UserResponse.from_json(resp.body)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
oneaccess-0.1.9 lib/oneaccess/api/user.rb
oneaccess-0.1.8 lib/oneaccess/api/user.rb
oneaccess-0.1.7 lib/oneaccess/api/user.rb
oneaccess-0.1.6 lib/oneaccess/api/user.rb
oneaccess-0.1.5 lib/oneaccess/api/user.rb
oneaccess-0.1.4 lib/oneaccess/api/user.rb
oneaccess-0.1.3 lib/oneaccess/api/user.rb
oneaccess-0.1.2 lib/oneaccess/api/user.rb
oneaccess-0.1.1 lib/oneaccess/api/user.rb