Sha256: e6666e9fda522b600b952171ee8aefc561ac6e1b521e089b5d9c315c8deeacc7

Contents?: true

Size: 490 Bytes

Versions: 7

Compression:

Stored size: 490 Bytes

Contents

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

module ONEAccess
  module API
    module V1_1 # rubocop:disable Style/ClassAndModuleCamelCase
      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

7 entries across 7 versions & 1 rubygems

Version Path
oneaccess-0.4.4 lib/oneaccess/api/v1_1/user.rb
oneaccess-0.4.3 lib/oneaccess/api/v1_1/user.rb
oneaccess-0.4.2 lib/oneaccess/api/v1_1/user.rb
oneaccess-0.4.1 lib/oneaccess/api/v1_1/user.rb
oneaccess-0.4.0 lib/oneaccess/api/v1_1/user.rb
oneaccess-0.3.0 lib/oneaccess/api/v1_1/user.rb
oneaccess-0.2.0 lib/oneaccess/api/v1_1/user.rb