Sha256: ba182d3bfb67be5f6dc260d5b3218c74f1f6bb995e01b38f13c2c0b0a647ec4b
Contents?: true
Size: 373 Bytes
Versions: 22
Compression:
Stored size: 373 Bytes
Contents
module PagSeguro class Bank include ActiveModel::Validations validates_presence_of :name validates_inclusion_of :name, in: %w(bradesco itau bancodobrasil banrisul hsbc) # Set the bank name # Should be a valid bank: bradesco, itau, bancodobrasil, banrisul ou hsbc attr_accessor :name def initialize(name) @name = name end end end
Version data entries
22 entries across 22 versions & 1 rubygems