Class: IPUnrecoveredFAObject
- Inherits:
-
Object
- Object
- IPUnrecoveredFAObject
- Includes:
- DataFactory, DateFactory, Foundry, Navigation, StringFactory
- Defined in:
- lib/kuality-coeus/data_objects/institutional_proposal/unrecovered_fa.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#applicable_rate ⇒ Object
Returns the value of attribute applicable_rate.
-
#fiscal_year ⇒ Object
Returns the value of attribute fiscal_year.
-
#on_campus_contract ⇒ Object
Returns the value of attribute on_campus_contract.
-
#rate_type ⇒ Object
Returns the value of attribute rate_type.
-
#source_account ⇒ Object
Returns the value of attribute source_account.
Instance Method Summary collapse
- #create ⇒ Object
- #edit(opts) ⇒ Object
-
#initialize(browser, opts = {}) ⇒ IPUnrecoveredFAObject
constructor
A new instance of IPUnrecoveredFAObject.
- #view ⇒ Object
Methods included from Navigation
#doc_search, #fill_out, #fill_out_item, #on_document?, #on_page?, #open_document, #window_cleanup
Methods included from Utilities
#get, #make_role, #make_user, #random_percentage, #set, #snake_case
Constructor Details
#initialize(browser, opts = {}) ⇒ IPUnrecoveredFAObject
Returns a new instance of IPUnrecoveredFAObject.
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/kuality-coeus/data_objects/institutional_proposal/unrecovered_fa.rb', line 12 def initialize(browser, opts={}) @browser = browser defaults = { fiscal_year: right_now[:year], rate_type: '::random::', on_campus_contract: :set, source_account: random_alphanums, amount: random_dollar_value(1000) } (defaults.merge(opts)) end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
9 10 11 |
# File 'lib/kuality-coeus/data_objects/institutional_proposal/unrecovered_fa.rb', line 9 def amount @amount end |
#applicable_rate ⇒ Object
Returns the value of attribute applicable_rate.
9 10 11 |
# File 'lib/kuality-coeus/data_objects/institutional_proposal/unrecovered_fa.rb', line 9 def applicable_rate @applicable_rate end |
#fiscal_year ⇒ Object
Returns the value of attribute fiscal_year.
9 10 11 |
# File 'lib/kuality-coeus/data_objects/institutional_proposal/unrecovered_fa.rb', line 9 def fiscal_year @fiscal_year end |
#on_campus_contract ⇒ Object
Returns the value of attribute on_campus_contract.
9 10 11 |
# File 'lib/kuality-coeus/data_objects/institutional_proposal/unrecovered_fa.rb', line 9 def on_campus_contract @on_campus_contract end |
#rate_type ⇒ Object
Returns the value of attribute rate_type.
9 10 11 |
# File 'lib/kuality-coeus/data_objects/institutional_proposal/unrecovered_fa.rb', line 9 def rate_type @rate_type end |
#source_account ⇒ Object
Returns the value of attribute source_account.
9 10 11 |
# File 'lib/kuality-coeus/data_objects/institutional_proposal/unrecovered_fa.rb', line 9 def source_account @source_account end |
Instance Method Details
#create ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/kuality-coeus/data_objects/institutional_proposal/unrecovered_fa.rb', line 25 def create view on Distribution do |page| page. page.add_unrec_f_a_fiscal_year.set @fiscal_year page.add_rate_type.pick! @rate_type page.add_fa_applicable_rate.fit @applicable_rate page.add_fa_campus_flag.fit @on_campus_contract page.add_fa_source_account.set @source_account page.add_fa_amount.set @amount page.add_unrecovered_f_a page.save end end |
#edit(opts) ⇒ Object
46 47 48 49 50 51 52 53 54 |
# File 'lib/kuality-coeus/data_objects/institutional_proposal/unrecovered_fa.rb', line 46 def edit(opts) view on Distribution do |page| page. #TODO: Add this code page.save end (opts) end |
#view ⇒ Object
40 41 42 43 44 |
# File 'lib/kuality-coeus/data_objects/institutional_proposal/unrecovered_fa.rb', line 40 def view # Note: Currently assumes we're already viewing # the institutional proposal! on(InstitutionalProposal).distribution end |