Sha256: cd303dd06b55877e68021c4f572d41679b2faf98882390584c229812507ccf19
Contents?: true
Size: 811 Bytes
Versions: 26
Compression:
Stored size: 811 Bytes
Contents
module TheCity class UserCount < ApiObject tc_attr_accessor :count, :filter # Constructor. # # @param options A hash of options for loading the user count. # # Options: # :filter - The Reader to use to load the data. # # # Examples: # UserCount.new # # UserCount.new({:filter => :created_in_the_last_7_Days}) # def initialize(options = {}) reader = options[:reader] || TheCity::UserCountReader.new(options) @json_data = reader.load_feed self.count = @json_data['count'] self.filter = @json_data['filter'] end def save raise 'User count does not have a save method' end def delete raise 'User count does not have a delete method' end end end
Version data entries
26 entries across 26 versions & 1 rubygems