Sha256: 597359f96b43829325694d191d7f7b5b5167703f039bf63594c93c84e8609d6d
Contents?: true
Size: 723 Bytes
Versions: 9
Compression:
Stored size: 723 Bytes
Contents
require 'perfect_audit/api/period' module PerfectAudit class BankAccount extend Dry::Initializer option :pk, as: :id option :book_pk, as: :book_id option :account_type#, optional: true option :account_holder#, optional: true option :account_number#, optional: true option :holder_zip#, optional: true option :holder_state#, optional: true option :holder_city#, optional: true option :holder_address_1#, optional: true option :holder_address_2#, optional: true option :name option :periods, as: :_periods def periods _periods.map do |item| PerfectAudit::Period.new(item.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems