Class: Hotify::Auth

Inherits:
Object
  • Object
show all
Defined in:
lib/hotify/auth.rb

Instance Method Summary collapse

Constructor Details

#initializeAuth

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

#clientObject



11
12
13
# File 'lib/hotify/auth.rb', line 11

def client
  @client
end