Sha256: 4e14f2f8b332969bfaa54f3a1ad0bdb2cd2158ff6149017f85fb568509124c66

Contents?: true

Size: 748 Bytes

Versions: 4

Compression:

Stored size: 748 Bytes

Contents

require 'data_mapper'

class Setting
  include DataMapper::Resource

  property :id,     Serial
  property :name,   String
  property :value,  String
  property :scope,  Enum[:global, :user, :torrent]
  # For settings that are not global, owner identifies who they apply to.
  # For user settings, this is the user. For torrent settings this is the torrent infohash in hex ascii
  property :owner,  String
end

class UsageBucket
  include DataMapper::Resource

  property :id,             Serial
  property :type,           Enum[:daily, :monthly]
  property :index,          Integer
  property :label,          String
  property :criteriaData,   Time
  property :absoluteUsage,  Integer
  property :value,          Integer
end

DataMapper.finalize

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
quartz_flow-0.0.4 lib/quartz_flow/model.rb
quartz_flow-0.0.3 lib/quartz_flow/model.rb
quartz_flow-0.0.2 lib/quartz_flow/model.rb
quartz_flow-0.0.1 lib/quartz_flow/model.rb