Sha256: 0a7637cd7468c6b4c8e211206834f3604632fce67b84c0cb41a29bfb1f75adc4
Contents?: true
Size: 830 Bytes
Versions: 4
Compression:
Stored size: 830 Bytes
Contents
# -*- coding: utf-8 -*- require 'active_record' require 'forwardable' require 'pp' module Feedlrop module Dbutil class Unreadfeed < ActiveRecord::Base end class Countdatetime < ActiveRecord::Base end class FeedlropMgr extend Forwardable def initialize(register_time) @register_time = register_time @ct = Countdatetime.create( countdatetime: @register_time ) end def add( category, url , unread_count ) begin uf = Unreadfeed.create( time_id: @ct.id , category: category , url: url , unread_count: unread_count , start_datetime: @register_time ) rescue => ex p ex.class p ex.message pp ex.backtrace end uf end def find(id) Unreadfeed.find(id) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems