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

apis-is

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apis-is

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

# Ruby wrapper for the apis.is API

This gem wraps the apis.is API in a simple wrapper that is easy to use within your ruby projects

Installation

To install this gem you can either type:

gem install apis-is

in the terminal or you can add this to your gemfile

gem 'apis-is'

And then execute:

$ bundle

Making requests

Using this wrapper is very simple, and you can use it for the following apis.is endpoints

  • Icelandic Bus System
  • Cars in Iceland
  • Icelandic cinema
  • Icelandic companies
  • Currency in relation to ISK
  • Bicyclecounter in Reykjavik
  • Earthquakes in Iceland
  • International flights in Iceland
  • Icelandic lottery
  • Particulates in Reykjavik
  • Icelandic Weather
  • Icelandic television schedules

Ruby Example

require 'apis'

# Fetch all active busses
response = Apis.busses

# prints out all active busses
puts response[:results]

# Fetch all busses by bus number
response = Apis.busses([1, 4, 14])

# prints out active busses number 1, 4 and 14
puts response[:results]

Rails Example

# in your Gemfile add
gem 'apis-is', require: 'apis'

# Then in your controller you can do
@response = Apis.busses

# And in your view file
<%= @response[:results] %>

FAQs

Package last updated on 08 Sep 2014

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