Sha256: 8bbcbd169a2bdb1e567c220cdaa853cd351753a1555dbb2c354ba65a5c60cc37

Contents?: true

Size: 443 Bytes

Versions: 6

Compression:

Stored size: 443 Bytes

Contents

# frozen_string_literal: true

require_relative "../../response/user_response"

module ONEAccess
  module API
    module V1_1
      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
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
oneaccess-1.2.0 lib/oneaccess/api/v1_1/user.rb
oneaccess-1.1.0 lib/oneaccess/api/v1_1/user.rb
oneaccess-1.0.1 lib/oneaccess/api/v1_1/user.rb
oneaccess-1.0.0 lib/oneaccess/api/v1_1/user.rb
oneaccess-0.5.0 lib/oneaccess/api/v1_1/user.rb
oneaccess-0.4.5 lib/oneaccess/api/v1_1/user.rb