Class: Lightcast::Services::Skills
- Inherits:
-
Object
- Object
- Lightcast::Services::Skills
- Defined in:
- lib/lightcast-ruby/services/skills.rb
Instance Method Summary collapse
- #extract(**params) ⇒ Object
- #get(id) ⇒ Object
-
#initialize(client:, version:, release:) ⇒ Skills
constructor
A new instance of Skills.
- #list(**params) ⇒ Object
- #related(**params) ⇒ Object
- #status ⇒ Object
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 |
#related(**params) ⇒ Object
26 27 28 |
# File 'lib/lightcast-ruby/services/skills.rb', line 26 def (**params) @client.connection_services.post("/taxonomies/skills/versions/#{@version}/relations", **params) end |
#status ⇒ Object
30 31 32 |
# File 'lib/lightcast-ruby/services/skills.rb', line 30 def status @client.connection_services.get('/status') end |