Skip to content

Commit

Permalink
feat!: renames UserAPI to User
Browse files Browse the repository at this point in the history
  • Loading branch information
ctran88 committed Dec 23, 2024
1 parent 8b57630 commit 0cd1a00
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/passageidentity/client.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

require_relative 'auth'
require_relative 'user_api'
require_relative 'user'
require_relative 'version'

module Passage
Expand Down Expand Up @@ -30,7 +30,7 @@ def initialize(app_id:, api_key:)
req_opts[:debug_auth_names] = ['header']

@auth = Passage::Auth.new(app_id: app_id, req_opts: req_opts)
@user = Passage::UserAPI.new(app_id: app_id, req_opts: req_opts)
@user = Passage::User.new(app_id: app_id, req_opts: req_opts)
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
require_relative '../openapi_client'

module Passage
# The UserAPI class provides methods for interacting with Passage Users
class UserAPI
# The User class provides methods for interacting with Passage Users
class User
def initialize(app_id:, req_opts:)
@app_id = app_id
@req_opts = req_opts
Expand Down
4 changes: 2 additions & 2 deletions tests/user_api_test.rb → tests/user_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

Dotenv.load('.env')

# This is a test suite for the Passage User API using the Test::Unit framework.
class TestUserAPI < Test::Unit::TestCase
# This is a test suite for the Passage User using the Test::Unit framework.
class TestUser < Test::Unit::TestCase
PassageClient = Passage::Client.new(app_id: ENV['APP_ID'], api_key: ENV['API_KEY'])

def setup
Expand Down

0 comments on commit 0cd1a00

Please sign in to comment.