Method: BudgetPeriodObject#initialize
- Defined in:
- lib/kuality-coeus/data_objects/budget/budget_periods.rb
#initialize(browser, opts = {}) ⇒ BudgetPeriodObject
Returns a new instance of BudgetPeriodObject.
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/kuality-coeus/data_objects/budget/budget_periods.rb', line 13 def initialize(browser, opts={}) @browser = browser defaults = { doc_type: 'Budget Document ', # Note: the trailing space is not a typo! cost_sharing_distribution_list: collection('CostSharing') } (defaults.merge(opts)) requires :start_date, :budget_name datify add_cost_sharing @cost_sharing end |