Sha256: 7a8640ac4b9b3d5f91d98090fdd082a1184453dfa81668c8718621f2acb0b839
Contents?: true
Size: 763 Bytes
Versions: 1
Compression:
Stored size: 763 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 white_list = [:page, :filter] options.clone.delete_if { |key, value| !white_list.include?(key) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
the-city-admin-0.6.0 | lib/readers/invitation_list_reader.rb |