Sha256: 3283a38ed3186890b74818e8561070e98ba9a1adc2802b8c2c768adae6e3c8ef

Contents?: true

Size: 307 Bytes

Versions: 5

Compression:

Stored size: 307 Bytes

Contents

module Billable
  include DataMapper::Resource

  is :remixable,
    :suffix => "billing_account"

  property :id,         Integer, :key => true, :serial => true

  property :cc_type,    Enum.new("mastercard","amex","visa")
  property :cc_num,     String, :length => 12..20
  property :expiration, Date
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dm-is-remixable-0.9.7 spec/data/billable.rb
dm-is-remixable-0.9.10 spec/data/billable.rb
dm-is-remixable-0.9.11 spec/data/billable.rb
dm-is-remixable-0.9.8 spec/data/billable.rb
dm-is-remixable-0.9.9 spec/data/billable.rb