module OLE_QA::Framework::Account_Factory
Generate usable accounting strings from source files in ole-qa-framework/data/
Attributes
account_matrix[R]
A Hash containing a list of valid OLE Test Environment Account Numbers. :Chart_Code => [[‘123456’,‘Account Name’],[‘789012’,‘Account Name’]]
object_matrix[R]
A Hash containing a list of valid OLE Test Environment Object Codes. :Chart_Code => [[],[]]
Public Class Methods
select_account(chart_code = :BL)
click to toggle source
Return a random accounting array. @param chart_code [Symbol] The chart code from which the account should be selected.
# File lib/data_factory/account_factory.rb, line 40 def select_account(chart_code = :BL) @account_matrix[chart_code].sample end
select_object(chart_code = :BL)
click to toggle source
Return a random object array. @param chart_code [Symbol] The chart code from which the object should be selected.
# File lib/data_factory/account_factory.rb, line 46 def select_object(chart_code = :BL) @object_matrix[chart_code].sample end