Sha256: efae1ba7f11821871ea3b779ed83e45621aa7de5067835c3a2e70af6344769c5

Contents?: true

Size: 338 Bytes

Versions: 7

Compression:

Stored size: 338 Bytes

Contents

# encoding: utf-8
module SPS
  class CreditorAccount < Account
    attr_accessor :creditor_identifier,
                  :isr_participant_number

    validates_with CreditorIdentifierValidator,
                   message: "%{value} is invalid"
    validates_format_of :isr_participant_number, with: /\A\d{9}\z/, allow_nil: true
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sps_king-0.5.0 lib/sps_king/account/creditor_account.rb
sps_king-0.4.0 lib/sps_king/account/creditor_account.rb
sps_king-0.3.1 lib/sps_king/account/creditor_account.rb
sps_king-0.3.0 lib/sps_king/account/creditor_account.rb
sps_king-0.2.0 lib/sps_king/account/creditor_account.rb
sps_king-0.1.1 lib/sps_king/account/creditor_account.rb
sps_king-0.1.0 lib/sps_king/account/creditor_account.rb