Sha256: d85f4ab01ab4bad40fe0edf5d344b7bf27b30cde4aad5f065f0a5651d8c0611f
Contents?: true
Size: 772 Bytes
Versions: 11
Compression:
Stored size: 772 Bytes
Contents
module TheCity class InvitationListReader < ApiReader # Constructor. # # @param options A hash of options for requesting data from the server. # :: group_id is required # @param [CacheAdapter] cacher (optional) The cacher to be used to cache data. def initialize(options = {}, cacher = nil) options[:page] ||= 1 #@class_key = "invitations_#{page}" @url_data_path = "/invitations" @url_data_params = white_list_options(options) # The object to store and load the cache. @cacher = cacher unless cacher.nil? end def white_list_options(options) white_list = [:page, :filter] options.clone.delete_if { |key, value| !white_list.include?(key) } end end end
Version data entries
11 entries across 11 versions & 1 rubygems