Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

learnosity_utils

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

learnosity_utils

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

LearnosityUtils

LearnosityUtils wraps the learnosity-sdk gem, adding easy user configuration, and preset method generation for commonly used Learnosity Data Api itembank endpoints

Installation

Add this line to your application's Gemfile:

gem 'learnosity_utils'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install learnosity_utils

Usage

After installation you'll need configure the gem with your personal Learnosity provided credentials

LearnosityUtils.configure do |config|
  config.consumer_secret = '74c5fd430cf1242a527f6223aebd42d30464be22'
  config.security_packet = {
    'consumer_key' => 'yis0TYCu7U9V4o7M',
    'domain' => 'localhost'
  }
end

Note: The example contains demo credentials exposed by Learnosity's data-api demo site

The itembank endpoints currently accessible as getters and setters are:

  • items
  • items_tags
  • questions
  • features
  • activities

When performing a get request, the only parameter necessary is an array of reference IDs

references = ['1234567890']

LearnosityUtils::EndPoint::ItemBank.send(:get_items, references)

Code of Conduct

Everyone interacting in this codebase and issue tracker is expected to follow the code of conduct

License

The gem is available as open source under the terms of the MIT license

FAQs

Package last updated on 12 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc