Socket
Book a DemoInstallSign in
Socket

unm

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unm

0.1.2
bundlerRubygems
Version published
Maintainers
1
Created
Source

Unm

This gem interacts with UNM interfaces. Currently it only works with the events calendar and course catalog.

Installation

Add this line to your application's Gemfile:

gem 'unm'

And then execute:

$ bundle

Or install it yourself as:

$ gem install unm

Usage

To use the calendar, first create a new Unm::Calendar object by passing it a start and end date, and a format (defaults to CSV, other options are ICAL and XML):

calendar = Unm::Calendar.new(Date.today, Date.today + 365, "ICAL")

Then perform the request (returns the request body):

request = calendar.get
puts request
# Probably outputs some super long iCalendar string

To get the course catalog, use Unm::Courses.get:

catalog = Unm::Courses.get

=> [{"Subject" =>
     [{"name" => "Course Name", "title" => "Course Title", "description" => "Course Description"},
      {"name" => "Course Name", "title" => "Course Title", "description" => "Course Description"},
      #...
     ]
   ]

Contributing

  • Fork it ( https://github.com/[my-github-username]/unm/fork )
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create a new Pull Request

FAQs

Package last updated on 08 Feb 2018

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.