Class: Achoo::Achievo::HourRegistrationFormRanged
- Inherits:
-
HourRegistrationForm
- Object
- HourRegistrationForm
- Achoo::Achievo::HourRegistrationFormRanged
- Defined in:
- lib/achoo/achievo/hour_registration_form_ranged.rb
Instance Method Summary collapse
- #date ⇒ Object
- #date=(date_range) ⇒ Object
-
#initialize(agent) ⇒ HourRegistrationFormRanged
constructor
A new instance of HourRegistrationFormRanged.
Methods inherited from HourRegistrationForm
#all_projects, #billing=, #billing_options, #collect_options, #hours=, #phase, #phase=, #phases_for_selected_project, #print_values, #project, #project=, #recent_projects, #remark=, #submit, #workperiod=, #worktime_periods
Constructor Details
#initialize(agent) ⇒ HourRegistrationFormRanged
Returns a new instance of HourRegistrationFormRanged.
9 10 11 12 13 |
# File 'lib/achoo/achievo/hour_registration_form_ranged.rb', line 9 def initialize(agent) super @page = @agent.get(atk_submit_to_url(@page.link_with(:text => 'Select range').href)) @form = @page.form('entryform') end |
Instance Method Details
#date ⇒ Object
20 21 22 |
# File 'lib/achoo/achievo/hour_registration_form_ranged.rb', line 20 def date [super, to_date()] end |
#date=(date_range) ⇒ Object
15 16 17 18 |
# File 'lib/achoo/achievo/hour_registration_form_ranged.rb', line 15 def date=(date_range) super(date_range[0]) self.to_date = date_range[1] end |