Skip to content

Commit

Permalink
feat: renames UserAPI class and file to User
Browse files Browse the repository at this point in the history
  • Loading branch information
ctran88 committed Dec 20, 2024
1 parent f94c25b commit d66d646
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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 All @@ -27,7 +27,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 @@ -4,7 +4,7 @@

module Passage
# The User class provides methods for interacting with Passage Users
class UserAPI
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 d66d646

Please sign in to comment.