Sha256: 26b2bc3ac36b5ab730ea09f43d05fd2f9cc4c12e40913f1e468bad94e834c79b

Contents?: true

Size: 396 Bytes

Versions: 1

Compression:

Stored size: 396 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 = get("getbyemail", userFirstName: first_name, userLastName: last_name, userEmail: email)
        Response::UserResponse.from_json(resp.body)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
oneaccess-0.1.0 lib/oneaccess/api/user.rb