Sha256: aafcfe5b81655f540a05abceeabc0889afcbdba84b4a63951d27dd8407088bc5

Contents?: true

Size: 285 Bytes

Versions: 13

Compression:

Stored size: 285 Bytes

Contents

module Billable
  include DataMapper::Resource

  is :remixable,
    :suffix => "billing_account"

  property :id,         Serial

  property :cc_type,    Enum, :flags => ["mastercard", "amex", "visa"]
  property :cc_num,     String, :length => 12..20
  property :expiration, Date
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
dm-is-remixable-1.2.0 spec/data/billable.rb
dm-is-remixable-1.2.0.rc2 spec/data/billable.rb
dm-is-remixable-1.2.0.rc1 spec/data/billable.rb
dm-is-remixable-1.1.0 spec/data/billable.rb
dm-is-remixable-1.1.0.rc3 spec/data/billable.rb
dm-is-remixable-1.1.0.rc2 spec/data/billable.rb
dm-is-remixable-1.1.0.rc1 spec/data/billable.rb
dm-is-remixable-1.0.2 spec/data/billable.rb
dm-is-remixable-1.0.1 spec/data/billable.rb
dm-is-remixable-1.0.0 spec/data/billable.rb
dm-is-remixable-1.0.0.rc3 spec/data/billable.rb
dm-is-remixable-1.0.0.rc2 spec/data/billable.rb
dm-is-remixable-1.0.0.rc1 spec/data/billable.rb