Class: Lightcast::Services::Skills

Inherits:
Object
  • Object
show all
Defined in:
lib/lightcast-ruby/services/skills.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:, version:, release:) ⇒ Skills

Returns a new instance of Skills.



6
7
8
9
10
# File 'lib/lightcast-ruby/services/skills.rb', line 6

def initialize(client:, version:, release:)
  @client   = client
  @version  = version
  @release = release
end

Instance Method Details

#extract(**params) ⇒ Object



12
13
14
15
16
# File 'lib/lightcast-ruby/services/skills.rb', line 12

def extract(**params)
  @client.connection_services.post(
    "/classifications/#{@release}/skills/extract", **params
  )
end

#get(id) ⇒ Object



18
19
20
# File 'lib/lightcast-ruby/services/skills.rb', line 18

def get(id)
  @client.connection_services.get("/taxonomies/skills/versions/#{@version}/concepts/#{id}")
end

#list(**params) ⇒ Object



22
23
24
# File 'lib/lightcast-ruby/services/skills.rb', line 22

def list(**params)
  @client.connection_services.post("/taxonomies/skills/versions/#{@version}/concepts", **params)
end


26
27
28
# File 'lib/lightcast-ruby/services/skills.rb', line 26

def related(**params)
  @client.connection_services.post("/taxonomies/skills/versions/#{@version}/relations", **params)
end

#statusObject



30
31
32
# File 'lib/lightcast-ruby/services/skills.rb', line 30

def status
  @client.connection_services.get('/status')
end