Class: FuturesPipeline::Client
- Inherits:
-
Object
- Object
- FuturesPipeline::Client
- Includes:
- Connection, Request
- Defined in:
- lib/futures_pipeline/client.rb
Instance Method Summary collapse
-
#assessment ⇒ Hashie::Mash
Get the skill/interest assessment questions and possible answers.
-
#assessment_result(i1, i2, i3, i4, i5, i6, s1, s2, s3, s4, s5, s6, s7, s8) ⇒ Hashie::Mash
Get the results from the skill/interest assessment.
-
#career(onet_soc_code) ⇒ Hashie::Mash
Get a single career using O*NET code.
-
#careers(options = {}) ⇒ Array<Hashie::Mash>
Get a list of all the available careers.
-
#search(moc) ⇒ Hashie::Mash
Search for careers by MOC code.
Methods included from Request
Instance Method Details
#assessment ⇒ Hashie::Mash
Get the skill/interest assessment questions and possible answers
48 49 50 |
# File 'lib/futures_pipeline/client.rb', line 48 def assessment get("/api/v1/assessment.json") end |
#assessment_result(i1, i2, i3, i4, i5, i6, s1, s2, s3, s4, s5, s6, s7, s8) ⇒ Hashie::Mash
Get the results from the skill/interest assessment
71 72 73 |
# File 'lib/futures_pipeline/client.rb', line 71 def assessment_result(i1, i2, i3, i4, i5, i6, s1, s2, s3, s4, s5, s6, s7, s8) get("/api/v1/careers/#{[i1, i2, i3, i4, i5, i6].join}/#{[s1, s2, s3, s4, s5, s6, s7, s8].join}.json") end |
#career(onet_soc_code) ⇒ Hashie::Mash
Get a single career using O*NET code.
28 29 30 31 |
# File 'lib/futures_pipeline/client.rb', line 28 def career(onet_soc_code) api_safe_onet_soc_code = onet_soc_code.tr(".", "-") get("/api/v1/careers/#{api_safe_onet_soc_code}.json") end |
#careers(options = {}) ⇒ Array<Hashie::Mash>
Get a list of all the available careers. Returns an array of 50 careers per request. Use offset option to get more.
17 18 19 |
# File 'lib/futures_pipeline/client.rb', line 17 def careers(={}) get("/api/v1/careers.json", ) end |
#search(moc) ⇒ Hashie::Mash
Search for careers by MOC code. Returns a list of careers related to the MOC.
39 40 41 |
# File 'lib/futures_pipeline/client.rb', line 39 def search(moc) get("/api/v1/careers/search.json?moc=#{moc}") end |