Sha256: 12e0b83abd647b52b2c1121c10d183287c7b17d394024433a4c074c4281da4f2
Contents?: true
Size: 522 Bytes
Versions: 1
Compression:
Stored size: 522 Bytes
Contents
module BraspagPagador class Customer include ::ActiveAttr::Model attr_accessor :name, :document, :email [:purchase, :generate, :authorize, :archive, :recurrency ].each do |check_on| validates :name, :length => {:minimum => 1, :maximum => 100, :on => check_on } validates :email, :length => {:minimum => 1, :maximum => 255, :on => check_on, :allow_blank => true} validates :document, :length => {:minimum => 11, :maximum => 18, :on => check_on, :allow_blank => true} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
braspag-pagador-0.9.5 | lib/braspag-pagador/core/customer.rb |