class RuckusSpot::Location
Public Class Methods
by_date(date = Time.now.strftime('%Y-%m-%d'), limit = 50)
click to toggle source
# File lib/ruckus-spot/location.rb, line 10 def self.by_date(date = Time.now.strftime('%Y-%m-%d'), limit = 50) get(:by_date, date: date, limit: limit) end
collection_path(prefix_options = {}, query_options = nil)
click to toggle source
# File lib/ruckus-spot/location.rb, line 4 def self.collection_path(prefix_options = {}, query_options = nil) prefix_options, query_options = split_options(prefix_options) if query_options.nil? fail ActiveResource::MissingPrefixParam, 'venue_id prefix_option is missing' unless prefix_options.has_key?(:venue_id) "#{prefix(prefix_options)}#{collection_name}/last_known.json#{query_string(query_options)}" end