Sha256: 5e71d4c00bee0781c4b385ccc02f1572c050cc57e29e2e7386a1d3e5d1ee3e9d

Contents?: true

Size: 443 Bytes

Versions: 2

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

2 entries across 2 versions & 1 rubygems

Version Path
oneaccess-1.3.1 lib/oneaccess/api/v1_1/user.rb
oneaccess-1.3.0 lib/oneaccess/api/v1_1/user.rb