Class: Lightcast::Client
- Inherits:
-
Object
- Object
- Lightcast::Client
- Includes:
- Authentication
- Defined in:
- lib/lightcast-ruby/client.rb
Constant Summary collapse
- BASE_URL_AUTH =
'https://auth.emsicloud.com'
- BASE_URL_SERVICES =
'https://classification.emsicloud.com'
Instance Method Summary collapse
- #connection_auth ⇒ Object
- #connection_services ⇒ Object
-
#initialize(client_id:, client_secret:, scope:) ⇒ Client
constructor
A new instance of Client.
- #skills(version: '9.0.0', release: '2024.7') ⇒ Object
Methods included from Authentication
Constructor Details
#initialize(client_id:, client_secret:, scope:) ⇒ Client
Returns a new instance of Client.
12 13 14 15 16 17 18 |
# File 'lib/lightcast-ruby/client.rb', line 12 def initialize(client_id:, client_secret:, scope:) @client_id = client_id @client_secret = client_secret @scope = scope @skills = nil end |
Instance Method Details
#connection_auth ⇒ Object
20 21 22 |
# File 'lib/lightcast-ruby/client.rb', line 20 def connection_auth Connection.new(url: BASE_URL_AUTH, scope: @scope) end |
#connection_services ⇒ Object
24 25 26 |
# File 'lib/lightcast-ruby/client.rb', line 24 def connection_services Connection.new(access_token: @access_token, url: BASE_URL_SERVICES) end |