Class: Hotify::Auth
- Inherits:
-
Object
- Object
- Hotify::Auth
- Defined in:
- lib/hotify/auth.rb
Instance Method Summary collapse
- #client ⇒ Object
-
#initialize ⇒ Auth
constructor
A new instance of Auth.
Constructor Details
#initialize ⇒ Auth
Returns a new instance of Auth.
3 4 5 6 7 8 9 |
# File 'lib/hotify/auth.rb', line 3 def initialize @client = OneLogin::Api::Client.new( client_id: ENV["ONELOGIN_ID"], client_secret: ENV["ONELOGIN_SECRET"], region: 'us' ) end |
Instance Method Details
#client ⇒ Object
11 12 13 |
# File 'lib/hotify/auth.rb', line 11 def client @client end |