Ruckus Wireless SPoT API client
API Version support
This gem uses Ruby > 2.0, ActiveResource > 4.0 and is for the v1 API only.
Introduction
http://www.ruckuswireless.com/products/smart-wireless-services/spot
Installation
- Command line:
gem install ruckus-spot
- Gemfile:
gem 'ruckus-spot'
Configuration
require 'ruckus-spot'
RuckusSpot.configure do |r|
r.api_key = 'my_api_key'
r.site = 'https://my.api.end.point.example.com'
end
Usage
Venue
- List
RuckusSpot::Venue.all
- Find by id
venue = RuckusSpot::Venue.find('venue_id')
Radio map
- List
venue.radio_maps
RuckusSpot::RadioMap.all(params:{venue_id: 'venue_id'})
- Find by name
venue.radio_maps.find('map_name')
RuckusSpot::RadioMap.find('map_name', params:{venue_id: 'venue_id'})
Location
- List of last seen
venue.locations
RuckusSpot::Location.all(params:{venue_id: 'venue_id'})