Method: Achoo::LockMonthForm#lock_month
- Defined in:
- lib/achoo/lock_month_form.rb
#lock_month(period) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/achoo/lock_month_form.rb', line 9 def lock_month(period) page = @agent.get(RC[:lock_months_url]) @form = page.form('entryform') @form.period = period unless user_select.nil? user_select..each do |opt| if opt.text.match(/\(#{RC[:user]}\)$/) opt.select end end end end |